Microsoft.ResourceManagement.ObjectModel.RmResource.RmResource C# (CSharp) Method

RmResource() protected method

Serialization constructor
The call to the base constructor ensures that the dictionary is created and filled with attribute names.
protected RmResource ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo
context StreamingContext
return System
        protected RmResource(
            SerializationInfo info,
            StreamingContext context)
            : this()
        {
            // must make a deep copy of attribute keys to avoid modifying the
            // collection being iterated
            List<RmAttributeName> keysCopy = new List<RmAttributeName>(Keys);
            foreach (RmAttributeName name in keysCopy) {
                this[name] = (RmAttributeValue)info.GetValue(name.Name, typeof(RmAttributeValue));
            }
        }