Example #1
0
 public bool Equals(NamespaceSpecification other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(String.Equals(NamespaceSpecificationAsString, other.NamespaceSpecificationAsString));
 }
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="from">The source of the dependency.</param>
 /// <param name="to">The target of the dependency.</param>
 public NamespaceDependencyRule(NamespaceSpecification from, NamespaceSpecification to)
 {
     From = from ?? throw new ArgumentNullException(nameof(from));
     To   = to ?? throw new ArgumentNullException(nameof(to));
 }