当前位置: 首页>>代码示例>>C#>>正文


C# SerializationInfo.AddValue方法代码示例

本文整理汇总了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);
        }
开发者ID:nickchal,项目名称:pash,代码行数:7,代码来源:ClipboardException.cs

示例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);
 }
开发者ID:TBroedsgaard,项目名称:SmartShopping,代码行数:7,代码来源:Shop.cs

示例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);
 }
开发者ID:Boxxxx,项目名称:clicker,代码行数:7,代码来源:ColorSurrogate.cs

示例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));
 }
开发者ID:kouvel,项目名称:coreclr,代码行数:8,代码来源:EncoderNLS.cs

示例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);
 }
开发者ID:SuperMap,项目名称:iClient-for-DotNet,代码行数:7,代码来源:Spheroid.cs

示例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);
        }
开发者ID:gobixm,项目名称:learn,代码行数:7,代码来源:DataServiceException.cs

示例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);
 }
开发者ID:bseddon,项目名称:ACMESharp,代码行数:7,代码来源:VaultProfileManager.cs

示例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));
        }
开发者ID:justinvp,项目名称:corert,代码行数:7,代码来源:BadImageFormatException.cs

示例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));
 }
开发者ID:HydAu,项目名称:sitecore8ecommerce,代码行数:7,代码来源:ConfigurationPipelineArgs.cs

示例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);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:ContractException.cs

示例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);            
 }
开发者ID:trevorjobling,项目名称:Google-Maps-Clustering-CSharp,代码行数:7,代码来源:Line.cs

示例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);
 }
开发者ID:jsikorski,项目名称:dotnet-paint,代码行数:7,代码来源:ShapesSerialization.cs

示例13: GetObjectData

		public override void GetObjectData(SerializationInfo info, StreamingContext context)
		{
			base.GetObjectData(info, context);

			info.AddValue("Approved", Approved);
			info.AddValue("Received", Received);
		}
开发者ID:EamonNerbonne,项目名称:ApprovalTests.Net,代码行数:7,代码来源:ApprovalException.cs

示例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);
 }
开发者ID:drzo,项目名称:opensim4opencog,代码行数:7,代码来源:UrlSyntaxException.cs

示例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);
 }
开发者ID:SayHalou,项目名称:ospy,代码行数:7,代码来源:PacketParser.cs


注:本文中的System.Runtime.Serialization.SerializationInfo.AddValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。