Extension Methods from Loek van den Ouweland
-
IsFilled(), IsEmpty()
Returns if a string is null or empty
-
IsEven
Returns true if the number is an even number
-
Multiply
Multiplies a TimeSpan by a number (int)
-
RewindAndPlay
When a silverlight MediaElement finishes playing, it does not rewind automatically. This extension method sets the MediaElement position at Zero and starts playing.
-
IsEqualMoney
Compares two money (decimal) variables ignoring differences above 0.01. Useful for comparing two calculated decimals. 73,414.IsEqualMoney(73,41) returns true.
-
IfType
Execute code only on certain types
-
ToSolidColorBrush
Converts a uint (0xFFb2b2b2) to a Silverlight SolidColorBrush object.
-
IsOdd
Returns true if the number is an odd number
-
ResizeAndFit
This method resizes a System.Drawing.Image and tries to fit it in the destination Size. The source image size may be smaller or bigger then the target size. Source and target layout orientation can be different. ResizeAndFit tries to fit it the best it can.
-
ToMouseInfo
Converts a complex multitouch, pressure sensitive silverlight stylus object to a simple MouseInfo object.
-
DrawCircle
Draw circles on Unity GameObjects
-
addDays
Adding and subtracting days from Date
-
FirstChildOrDefault
Finds first occurrence of a Unity Transform that satisfies the predicate
-
IsFilled(), IsEmpty()
IsFilled and IsEmpty provide a more natural (english language) alternative to check if the value of a string is null, empty or filled