¡@

Home 

c# Programming Glossary: tsource

switch / pattern matching idea

http://stackoverflow.com/questions/156467/switch-pattern-matching-idea

that I've been playing with 3 variants of the above a Func TSource TValue version for evaluation comparable to composite ternary.. to composite ternary conditional statements an Action TSource version comparable to if else if else if else if else an Expression.. to if else if else if else if else an Expression Func TSource TValue version as the first but usable by arbitrary LINQ providers..

Copy values from one object to another

http://stackoverflow.com/questions/2624823/copy-values-from-one-object-to-another

of TTarget. summary public static TTarget CopyFrom TSource TSource source where TSource class return PropertyCopier TSource.. of TTarget. summary public static TTarget CopyFrom TSource TSource source where TSource class return PropertyCopier TSource .Copy.. static TTarget CopyFrom TSource TSource source where TSource class return PropertyCopier TSource .Copy source summary Static..

Linq Distinct on a particular Property

http://stackoverflow.com/questions/489258/linq-distinct-on-a-particular-property

it's fairly easy to write public static IEnumerable TSource DistinctBy TSource TKey this IEnumerable TSource source Func.. easy to write public static IEnumerable TSource DistinctBy TSource TKey this IEnumerable TSource source Func TSource TKey keySelector.. TSource DistinctBy TSource TKey this IEnumerable TSource source Func TSource TKey keySelector HashSet TKey seenKeys new..

Retrieving Property name from lambda expression

http://stackoverflow.com/questions/671968/retrieving-property-name-from-lambda-expression

is not a property. public PropertyInfo GetPropertyInfo TSource TProperty TSource source Expression Func TSource TProperty propertyLambda.. public PropertyInfo GetPropertyInfo TSource TProperty TSource source Expression Func TSource TProperty propertyLambda Type.. TSource TProperty TSource source Expression Func TSource TProperty propertyLambda Type type typeof TSource MemberExpression..