Search Result Sortorder:

WhereIf  Submitted by Phil Campbell on 2009/11/17 When building a LINQ query, you may need to involve optional filtering criteria. Avoids if statements when building predicates & lambdas for a query. Useful when you don't know at compile time whether a filter should apply. Borrowed from Andrew Robinson. http://bit.ly/1V36G9Language C# Type System.Collections.Generic.IEnumerable<T> Downloads 9
Randomize  Submitted by Phil Campbell on 2009/11/02 OrderBy() is nice when you want a consistent & predictable ordering. This method is NOT THAT! Randomize() - Use this extension method when you want a different or random order every time! Useful when ordering a list of things for display to give each a fair chance of landing at the top or bottom on each hit. {customers, support techs, or even use as a randomizer for your lottery ;) }Language C# Type System.Collections.Generic.IEnumerable<T> Downloads 7
IsDate  Submitted by Phil Campbell on 2010/3/30 Wraps DateTime.TryParse() and all the other kinds of code you need to determine if a given string holds a value that can be converted into a DateTime object.Language C# Type System.String Downloads 2
HasMultipleInstancesOf  Submitted by Phil Campbell on 2009/11/09 Determines whether a string has multiple occurrences of a particular character. May be helpful when parsing file names, or ensuring a particular string has already contains a given character. This may be extended to use strings, rather than a char. Language C# Type System.String Downloads 1
Length  Submitted by Phil Campbell on 2010/3/24 Determines how many numbers compose the integer if it was represented as a string.Language C# Type System.Int32 Downloads 0
First Previous 1 Next Last