Provides methods for comparing symbols in a .NET assembly.
Beispiel #1
0
        public MsCorLibTypeSignature GetMscorlibType(ITypeDescriptor type)
        {
            SignatureComparer comparer = new SignatureComparer();
            MsCorLibTypeSignature signature;

            if (!comparer.MatchAssemblies(type.ResolutionScope.GetAssembly(), MsCorLibReference)
                || type.Namespace != "System"
                || !_typesByName.TryGetValue(type.Name, out signature))
            {
                return null;
            }

            return signature;
        }
 public static void ClassInitialize(TestContext context)
 {
     _comparer = new SignatureComparer();
 }