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