89
89
public string Name { get; set; }
90
90
public string Id { get; private set; }
95
95
policies = new PolicyDictionary ();
96
97
foreach (ScopedPolicy policyPair in PolicyService.RawDeserializeXml (reader)) {
97
98
PolicyKey key = new PolicyKey (policyPair.PolicyType, policyPair.Scope);
98
99
if (policies.ContainsKey (key))
99
100
throw new InvalidOperationException ("Cannot add second policy of type '" +
100
101
key.ToString () + "' to policy set '" + Id + "'");
101
103
policies[key] = policyPair.Policy;
102
104
if (!policyPair.SupportsDiffSerialize)
103
105
externalPolicies.Add (key);
117
110
internal bool SupportsDiffSerialize (ScopedPolicy pol)