public Schema ConfigureScripts(SchemaScripts newScripts) { return(Clone(clone => { clone.scripts = newScripts ?? new SchemaScripts(); clone.scripts.Freeze(); })); }
public Schema SetScripts(SchemaScripts newScripts) { newScripts ??= new SchemaScripts(); if (scripts.Equals(newScripts)) { return(this); } return(Clone(clone => { clone.scripts = newScripts; clone.scripts.Freeze(); })); }
public bool DeepEquals(SchemaScripts scripts) { return(this.WithDeepEqual(scripts).IgnoreProperty <Freezable>(x => x.IsFrozen).Compare()); }