Exemplo 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);
        }
Exemplo 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;
		}
Exemplo 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;
        }