23 references to KnownType
Microsoft.NET.HostModel (23)
ComHost\ClsidMap.cs (23)
147
CustomAttributeValue<
KnownType
> data = comVisibleAttribute.DecodeValue(new TypeResolver());
163
CustomAttributeValue<
KnownType
> data = comVisibleAttribute.DecodeValue(new TypeResolver());
197
CustomAttributeValue<
KnownType
> data = attribute.DecodeValue(new TypeResolver());
211
CustomAttributeValue<
KnownType
> data = attribute.DecodeValue(new TypeResolver());
254
private sealed class TypeResolver : ICustomAttributeTypeProvider<
KnownType
>
256
public
KnownType
GetPrimitiveType(PrimitiveTypeCode typeCode)
261
return
KnownType
.Bool;
263
return
KnownType
.String;
265
return
KnownType
.Unknown;
269
public
KnownType
GetSystemType()
271
return
KnownType
.SystemType;
274
public
KnownType
GetSZArrayType(
KnownType
elementType)
276
return
KnownType
.Unknown;
279
public
KnownType
GetTypeFromDefinition(MetadataReader reader, TypeDefinitionHandle handle, byte rawTypeKind)
281
return
KnownType
.Unknown;
284
public
KnownType
GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, byte rawTypeKind)
286
return
KnownType
.Unknown;
289
public
KnownType
GetTypeFromSerializedName(string name)
291
return
KnownType
.Unknown;
294
public PrimitiveTypeCode GetUnderlyingEnumType(
KnownType
type)
299
public bool IsSystemType(
KnownType
type)
301
return type ==
KnownType
.SystemType;