Func<T, TResult> Delegate
Encapsulates a method that has one parameter and return a value of the type specified by the TResult parameter.
Use this method to represent a method that can be passed as a parameter without explicitly declaring a custom delegate.
Action<T> Delegate
Encapsulate a method that has one parameter and does not return a value.
...
Sunday, September 30, 2012
Lambda Expressions in C#
Lambda
expression is a anonymous function that you can use to create delegates
or expression tree types. These are useful for writing LINQ query
expressions.
Expression Lambdas
A lambda expression with a statement on right side of => operator. These are used to construct expression trees.
This file contains...
Friday, September 14, 2012
Session State Modes in ASP.NET
ASP.NET session state supports several different storage options for session data. Each option is identified by value in the SessionStateMode enum. ASP.NET Session has the type HttpSessionStateBase type. Session has 2 methods, Session.Clear() and Session.Abandon(). See the difference.
InProc (default)
Store session state in web server memory.
StateServer
Store session state in a separate...
Monday, September 10, 2012
Delegates in C#
In simple words delegate is a type that references to a method with a particular parameter list and a return type. You can invoke(call) the method through the delegate instance. Delegates are used to pass methods as arguments to other methods. Event handlers are methods invoked through delegates. Delegate is a similar concept as function pointers in C and C++.
The ability to pass methods as parameters...
Saturday, September 1, 2012
HTML Elements
Upto HTML 4.01. block level elements and inline elements.
inline elements:
respect l to r margins and padding. not top and bottom
cannot have width and height set
allow other elements to sit to their l and r
can display things before and after it, on the same line.
span, a, strong, em, img, input, abbr, acronym
block
respect all of those
force a line break after the block element
demands...
Subscribe to:
Posts (Atom)
Powered by Blogger.
Software Architect at Surge Global/ Certified Scrum Master
Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.