public static bool Equals(FieldWithToken field1, FieldWithToken field2)
 {
     if (field1 == null || field2 == null)
     {
         return(field1 == null && field2 == null);
     }
     return(RuntimeDeterminedTypeHelper.Equals(field1.Field, field2.Field));
 }
Esempio n. 2
0
 public static bool Equals(FieldDesc field1, FieldDesc field2)
 {
     if (field1 == null || field2 == null)
     {
         return(field1 == null && field2 == null);
     }
     return(field1.Name == field2.Name &&
            RuntimeDeterminedTypeHelper.Equals(field1.OwningType, field2.OwningType) &&
            RuntimeDeterminedTypeHelper.Equals(field1.FieldType, field2.FieldType));
 }