forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonTypes.cs
More file actions
31 lines (30 loc) · 1.55 KB
/
CommonTypes.cs
File metadata and controls
31 lines (30 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
namespace Simple.Data
{
public static class CommonTypes
{
private static readonly HashSet<Type> Set = new HashSet<Type>
{
typeof(Boolean),
typeof(Byte),
typeof(Char),
typeof(DateTime),
typeof(Decimal),
typeof(Double),
typeof(Guid),
typeof(Int16),
typeof(Int32),
typeof(Int64),
typeof(Single),
typeof(String),
typeof(UInt16),
typeof(UInt32),
typeof(UInt64),
};
public static bool Contains(Type type)
{
return Set.Contains(type);
}
}
}