コード例 #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));
            }
        }
コード例 #2
0
 public PolicyCataloguesCache(PolicyCataloguesCache rhs, bool readOnly): base(rhs, readOnly)
 {
     CopyInternalDictionary(rhs, readOnly);
 }
コード例 #3
0
 public PolicyCataloguesCache(PolicyCataloguesCache rhs): base(rhs)
 {
     CopyInternalDictionary(rhs, rhs.ReadOnly);
 }