protected void OnDeserializedSr(StreamingContext sc) { if (Config == null) { Config = new SixRepoConfig(); } if (Servers == null) { Servers = new Dictionary <string, SixRepoServer>(); } if (Collections == null) { Collections = new CustomCollection[0]; } }
public SixRepo() { Config = new SixRepoConfig(); Servers = new Dictionary <string, SixRepoServer>(); Collections = new CustomCollection[0]; }