Beispiel #1
0
 public Schema ConfigureScripts(SchemaScripts newScripts)
 {
     return(Clone(clone =>
     {
         clone.scripts = newScripts ?? new SchemaScripts();
         clone.scripts.Freeze();
     }));
 }
Beispiel #2
0
        public Schema SetScripts(SchemaScripts newScripts)
        {
            newScripts ??= new SchemaScripts();

            if (scripts.Equals(newScripts))
            {
                return(this);
            }

            return(Clone(clone =>
            {
                clone.scripts = newScripts;
                clone.scripts.Freeze();
            }));
        }
Beispiel #3
0
 public bool DeepEquals(SchemaScripts scripts)
 {
     return(this.WithDeepEqual(scripts).IgnoreProperty <Freezable>(x => x.IsFrozen).Compare());
 }