private Type GetSystemTypeFromUnityType(KeywordDataType unityKeywordDataType) { switch (unityKeywordDataType) { case KeywordDataType.AlphaNumeric: case KeywordDataType.Undefined: case KeywordDataType.Currency: case KeywordDataType.SpecificCurrency: return(typeof(String)); case KeywordDataType.Numeric9: case KeywordDataType.Numeric20: return(typeof(Int32)); case KeywordDataType.FloatingPoint: return(typeof(Decimal)); case KeywordDataType.Date: case KeywordDataType.DateTime: return(typeof(DateTime)); default: throw new ArgumentOutOfRangeException("unityKeywordDataType"); } }
private Type GetSystemTypeFromUnityType(KeywordDataType unityKeywordDataType) { switch (unityKeywordDataType) { case KeywordDataType.AlphaNumeric: case KeywordDataType.Undefined: case KeywordDataType.Currency: case KeywordDataType.SpecificCurrency: return typeof(String); case KeywordDataType.Numeric9: case KeywordDataType.Numeric20: return typeof(Int32); case KeywordDataType.FloatingPoint: return typeof(Decimal); case KeywordDataType.Date: case KeywordDataType.DateTime: return typeof(DateTime); default: throw new ArgumentOutOfRangeException("unityKeywordDataType"); } }