private void CopyInternalDictionary(PolicyCataloguesCache rhs, bool readOnly) { m_catalogues = new Dictionary<Guid, IPolicyCatalogue>(); Dictionary<Guid, IPolicyCatalogue>.Enumerator enumer = rhs.m_catalogues.GetEnumerator(); while (enumer.MoveNext()) { PolicyCatalogue catalogue = enumer.Current.Value as PolicyCatalogue; if (catalogue == null) continue; m_catalogues.Add(enumer.Current.Key, new PolicyCatalogue(catalogue, rhs.ReadOnly)); } }
public PolicyCataloguesCache(PolicyCataloguesCache rhs, bool readOnly): base(rhs, readOnly) { CopyInternalDictionary(rhs, readOnly); }
public PolicyCataloguesCache(PolicyCataloguesCache rhs): base(rhs) { CopyInternalDictionary(rhs, rhs.ReadOnly); }