private bool Equals(Architecture other) { return(Assemblies.Equals(other.Assemblies) && Namespaces.Equals(other.Namespaces) && Types.Equals(other.Types)); }
/// <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)) };