Having recently upgraded my ASP.NET code from .NET 2.0 to .NET 4.5, a few things I don’t expect to do often have entered my mind:
1. C# Linq has an implicit language now. You can do this:
IEnumerable<Type> lstOfTypes = lstParent.Where( a => a.Property == false );
Ok — this means you take a parent that happens to be a list( Actually, anything that implements IEnumerable ), use a LINQ where clause, and an implicitely typed variable, a, of the correct element type specified in the original parent IEnumerable. ( They call these implicitely typed variables, “Predicates” ).
2. wsdl is now here:
%ProgramFiles(x86)%\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\wsdl.exe
Usage is wsdl /language:C# /out:ProxyClass.cs http://URLToASMX