Advertisement
TSorbera

Untitled

Nov 12th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1.     public static bool IsSimpleType(this Type type)
  2.     {
  3.         return
  4.             type.IsValueType ||
  5.             type == typeof(String) ||
  6.             Convert.GetTypeCode(type) != TypeCode.Object;
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement