本文整理汇总了C#中System.Runtime.Serialization.SerializationInfo.AddValue方法的典型用法代码示例。如果您正苦于以下问题:C# SerializationInfo.AddValue方法的具体用法?C# SerializationInfo.AddValue怎么用?C# SerializationInfo.AddValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Runtime.Serialization.SerializationInfo
的用法示例。
在下文中一共展示了SerializationInfo.AddValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("ClipboardOwnerProcessName", processName);
info.AddValue("ClipboardOwnerProcessId", processId);
base.GetObjectData(info, context);
}
示例2: GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
{
info.AddValue("Uid", this.Uid);
info.AddValue("Name", this.Name);
info.AddValue("Products", this.Products);
info.AddValue("Orders", this.Orders);
}
示例3: GetObjectData
public void GetObjectData(object obj, SerializationInfo info, StreamingContext context) {
var color = (Color)obj;
info.AddValue("r", color.r);
info.AddValue("g", color.g);
info.AddValue("b", color.b);
info.AddValue("a", color.a);
}
示例4: SerializeEncoder
// ISerializable implementation. called during serialization.
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
SerializeEncoder(info);
info.AddValue("encoding", this.m_encoding);
info.AddValue("charLeftOver", this.charLeftOver);
info.SetType(typeof(Encoding.DefaultEncoder));
}
示例5:
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("Axis", this.Axis);
info.AddValue("Flatten", this.Flatten);
info.AddValue("Name", this.Name);
info.AddValue("Type", this.Type);
}
示例6: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("DataServiceException.FaultMessage", Fault.Message);
info.AddValue("DataServiceException.FaultMessage", Fault.Detail);
}
示例7: GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue(nameof(Name), Name);
info.AddValue(nameof(ProviderName), ProviderName);
info.AddValue(nameof(ProviderParameters), ProviderParameters);
info.AddValue(nameof(VaultParameters), VaultParameters);
}
示例8: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("BadImageFormat_FileName", _fileName, typeof(String));
info.AddValue("BadImageFormat_FusionLog", _fusionLog, typeof(String));
}
示例9: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("ConfigurationPipelineArgs.ConfigurationItem", this.ConfigurationItem, typeof(object));
info.AddValue("ConfigurationPipelineArgs.ConfigurationItemType", this.ConfigurationItemType, typeof(Type));
info.AddValue("ConfigurationPipelineArgs.EntityName", this.EntityName, typeof(string));
}
示例10: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Kind", this._Kind);
info.AddValue("UserMessage", this._UserMessage);
info.AddValue("Condition", this._Condition);
}
示例11: GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
{
info.AddValue("X", this.X);
info.AddValue("Y", this.Y);
info.AddValue("X2", this.X2);
info.AddValue("Y2", this.Y2);
}
示例12: Serialize
public static void Serialize(this IShape shape, SerializationInfo serializationInfo)
{
serializationInfo.AddPen("Pen", shape.Pen);
serializationInfo.AddBrush("Brush", shape.Brush);
serializationInfo.AddValue("Start", shape.Start);
serializationInfo.AddValue("End", shape.End);
}
示例13: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Approved", Approved);
info.AddValue("Received", Received);
}
示例14: GetObjectData
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Url", _url);
info.AddValue("Index", _index);
info.AddValue("Length", _length);
}
示例15: GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext ctx)
{
info.AddValue("sessions", sessions);
info.AddValue("packets", packets);
info.AddValue("packetIndexToNodes", packetIndexToNodes);
info.AddValue("nodes", nodes);
}