Esempio n. 1
0
        public static NullableType GetTypeType(int length)
        {
            string key = GetKeyForLengthBased(typeof(TypeType).FullName, length);

            IType returnType;

            if (!typeByTypeOfName.TryGetValue(key, out returnType))
            {
                returnType = new TypeType(SqlTypeFactory.GetString(length));
                AddToTypeOfNameWithLength(key, returnType);
            }

            return((NullableType)returnType);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="length"></param>
        /// <returns></returns>
        public static NullableType GetTypeType(int length)
        {
            string key = GetKeyForLengthBased(typeof(TypeType).FullName, length);

            NullableType returnType = ( NullableType )typeByTypeOfName[key];

            if (returnType == null)
            {
                returnType = new TypeType(SqlTypeFactory.GetString(length));
                AddToTypeOfNameWithLength(key, returnType);
            }

            return(returnType);
        }
		public static NullableType GetTypeType(int length)
		{
			string key = GetKeyForLengthBased(typeof(TypeType).FullName, length);

			IType returnType;
			if (!typeByTypeOfName.TryGetValue(key, out returnType))
			{
				returnType = new TypeType(SqlTypeFactory.GetString(length));
				AddToTypeOfNameWithLength(key, returnType);
			}

			return (NullableType)returnType;
		}
Esempio n. 4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="length"></param>
        /// <returns></returns>
        public static NullableType GetTypeType(int length)
        {
            string key = GetKeyForLengthBased(typeof(TypeType).FullName, length);

            NullableType returnType = (NullableType) typeByTypeOfName[key];
            if (returnType == null)
            {
                returnType = new TypeType(SqlTypeFactory.GetString(length));
                AddToTypeOfNameWithLength(key, returnType);
            }

            return returnType;
        }