Esempio n. 1
0
        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");
            }
        }
Esempio n. 2
0
        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");
            }
        }