Microsoft.ResourceManagement.ObjectModel.RmAttributeValue.GetObjectData C# (CSharp) Method

GetObjectData() public method

Populates a T:System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
/// The caller does not have the required permission. ///
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo The to populate with data.
context StreamingContext The destination (see ) for this serialization.
return void
        public void GetObjectData(
            SerializationInfo info,
            StreamingContext context)
        {
            info.AddValue("count", attributeValues.Count);
            for (int i = 0; i < attributeValues.Count; ++i) {
                info.AddValue(string.Format("values[{0}]", i), attributeValues[i]);
            }
        }