public static SyncFactory GetOrCreateSyncFactory(Type InType) { SyncFactory factory; if (!factoriesDict.TryGetValue(InType, out factory)) { try { factory = new SyncFactory(InType); factoriesDict.Add(InType, factory); } catch (Exception ex) { Debug.LogError(InType + " Create SyncFactory Error : " + ex.Message); } } return(factory); }
protected SyncBase() { factory = SyncFactory.GetOrCreateSyncFactory(GetType()); propertyChangedDict = new Dictionary <string, DlgtPropertyChanged>(); }