public TypeReferenceProjection(TypeReference type, TypeReferenceTreatment treatment) { Name = type.Name; Namespace = type.Namespace; Scope = type.Scope; Treatment = treatment; }
public static void Project(TypeReference type) { ProjectionInfo projectionInfo; TypeReferenceTreatment typeReferenceTreatment = (!Projections.TryGetValue(type.Name, out projectionInfo) || !(projectionInfo.WinRTNamespace == type.Namespace)) ? GetSpecialTypeReferenceTreatment(type) : TypeReferenceTreatment.UseProjectionInfo; if (typeReferenceTreatment != 0) { ApplyProjection(type, new TypeReferenceProjection(type, typeReferenceTreatment)); } }
public TypeReferenceProjection(TypeReference type, TypeReferenceTreatment treatment) { Name = type.Name; Namespace = type.Namespace; Scope = type.Scope; Treatment = treatment; }