Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool IsSimpleType(this Type type)
- {
- return
- type.IsValueType ||
- type == typeof(String) ||
- Convert.GetTypeCode(type) != TypeCode.Object;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement