Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 public PolicyCataloguesCache(PolicyCataloguesCache rhs, bool readOnly): base(rhs, readOnly)
 {
     CopyInternalDictionary(rhs, readOnly);
 }
Exemplo n.º 3
0
 public PolicyCataloguesCache(PolicyCataloguesCache rhs): base(rhs)
 {
     CopyInternalDictionary(rhs, rhs.ReadOnly);
 }