Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal static bool IsPrimitiveType(Type type)
- {
- if ((type == typeof(string)) ||
- (type == typeof(bool)) ||
- (type == typeof(byte)) ||
- (type == typeof(char)) ||
- (type == typeof(DateTime)) ||
- (type == typeof(decimal)) ||
- (type == typeof(double)) ||
- (type == typeof(Guid)) ||
- (type == typeof(short)) ||
- (type == typeof(int)) ||
- (type == typeof(long)) ||
- (type == typeof(sbyte)) ||
- (type == typeof(float)) ||
- (type == typeof(TimeSpan)) ||
- (type == typeof(ushort)) ||
- (type == typeof(uint)) ||
- (type == typeof(ulong)))
- return true;
- else
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement