예제 #1
0
 private bool Equals(Architecture other)
 {
     return(Assemblies.Equals(other.Assemblies) && Namespaces.Equals(other.Namespaces) &&
            Types.Equals(other.Types));
 }
예제 #2
0
 /// <summary>
 /// Creates a new <see cref="ScriptOptions"/> with the namespaces changed.
 /// </summary>
 /// <exception cref="ArgumentNullException"><paramref name="namespaces"/> is null or contains a null reference.</exception>
 public ScriptOptions WithNamespaces(ImmutableArray <string> namespaces) =>
 Namespaces.Equals(namespaces) ? this : new ScriptOptions(this)
 {
     Namespaces = CheckImmutableArray(namespaces, nameof(namespaces))
 };