/// <summary> /// Initialize the primitive type with the given /// </summary> /// <param name="clrType"> The CLR type of this type </param> /// <param name="primitiveTypeKind"> The primitive type kind of the primitive type </param> private PrimitiveType CreatePrimitiveType(Type clrType, PrimitiveTypeKind primitiveTypeKind) { // Figures out the base type var baseType = MetadataItem.EdmProviderManifest.GetPrimitiveType(primitiveTypeKind); var primitiveType = new PrimitiveType(clrType, baseType, this); primitiveType.SetReadOnly(); return primitiveType; }