Пример #1
0
        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];
            }
        }
Пример #2
0
 public SixRepo()
 {
     Config      = new SixRepoConfig();
     Servers     = new Dictionary <string, SixRepoServer>();
     Collections = new CustomCollection[0];
 }