6 Important Delegates

Predicate: essentially Func<T, bool>; asks the question “does the specified argument satisfy the condition represented by the delegate?” Used in things like List.FindAll.
Action: Perform an action given the arguments. Very general purpose. Not used much in LINQ as it implies side-effects, basically.
Func: Used extensively in LINQ, usually to transform the argument, e.g. by projecting a [...]

NVelocity in Medium Trust ASP.Net Enviroment

The NVelocity DLLs download from castleproject.org can not run in ASP.Net with medium trust level enviroment.You need to modify the NVelocity source code and rebuild it, here is how to :
1. Download the sources from http://github.com/castleproject/NVelocity.
2. Open NVelocity solution with Visual Studio 2008.
3. Add codes below in CommonAssemblyInfo.cs:

using System.Security;
[assembly: AllowPartiallyTrustedCallers()]

4. Rebuild the NVelocity-2008 project.
5. [...]

HTML Parser Libraries for .Net

HTMLParser.Net

 HTMLParser.Net is a .Net library built on codebase of popular javabased HTMLParser available on sourceforge.net. If you are building applications that involve screen scrapping of HTML pages or data extraction from the web sites, then you definitely want to have a tool like HTMLParser.Net in your arsenal. Parsing of a page is as simple as [...]