Pchp.CodeAnalysis.Emit.PEModuleBuilder.IsPlatformType C# (CSharp) Méthode

IsPlatformType() public méthode

public IsPlatformType ( Microsoft.Cci typeRef, Microsoft.Cci platformType ) : bool
typeRef Microsoft.Cci
platformType Microsoft.Cci
Résultat bool
        public bool IsPlatformType(Cci.ITypeReference typeRef, Cci.PlatformType platformType)
        {
            var namedType = typeRef as PENamedTypeSymbol;
            if (namedType != null)
            {
                if (platformType == Cci.PlatformType.SystemType)
                {
                    return (object)namedType == (object)Compilation.GetWellKnownType(WellKnownType.System_Type);
                }

                return namedType.SpecialType == (SpecialType)platformType;
            }

            return false;
        }