コード例 #1
0
        // Token: 0x06001D77 RID: 7543 RVA: 0x00089598 File Offset: 0x00087798
        public override bool Equals(object o)
        {
            if (!(o is TypeInfoKey))
            {
                return(false);
            }
            TypeInfoKey typeInfoKey = (TypeInfoKey)o;

            if (!((typeInfoKey.DeclaringAssembly != null) ? typeInfoKey.DeclaringAssembly.Equals(this.DeclaringAssembly) : (this.DeclaringAssembly == null)))
            {
                return(false);
            }
            if (typeInfoKey.TypeFullName == null)
            {
                return(this.TypeFullName == null);
            }
            return(typeInfoKey.TypeFullName.Equals(this.TypeFullName));
        }
コード例 #2
0
ファイル: BamlMapTable.cs プロジェクト: sjyanxin/WPFSource
 // Return the hash table key used for a type info record with the given 
 // assembly name and type full name.  The type full name must include
 // the entire clr namespace. 
 private TypeInfoKey GetTypeInfoKey(
                        string       assemblyFullName,
                        string       typeFullName)
 { 
     TypeInfoKey key = new TypeInfoKey();
     key.DeclaringAssembly = assemblyFullName; 
     key.TypeFullName = typeFullName; 
     return key;
 }