예제 #1
0
 public virtual bool Equals(TypeDependencyId other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     else
     {
         return(TypeNameReference.Equals(_type, other._type));
     }
 }
예제 #2
0
 public static bool Equals(TypeDependencyId a, TypeDependencyId b)
 {
     if (ReferenceEquals(a, b))
     {
         return(true);
     }
     else if (ReferenceEquals(a, null))
     {
         return(false);
     }
     else
     {
         return(a.Equals(b));
     }
 }
예제 #3
0
 protected virtual void CreateReadOnlyCopy(out TypeDependencyId readOnlyCopy)
 => readOnlyCopy = new TypeDependencyId(this, isReadOnly: true);