Created
January 27, 2010 17:01
-
-
Save RookieOne/287998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Returns true if the object is the type of T | |
/// </summary> | |
public static bool IsTypeOf<T>(this object o) | |
{ | |
return o.GetType() == typeof (T); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment