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


C# Serialization.Add方法代码示例

本文整理汇总了C#中Serialization.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Serialization.Add方法的具体用法?C# Serialization.Add怎么用?C# Serialization.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Serialization的用法示例。


在下文中一共展示了Serialization.Add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddSerialization

        protected virtual void AddSerialization(
            Serialization.SerializationMembersList list,
            string memberType, string memberName,
            string backingStoreType, string backingStoreName)
        {
            if (list != null)
            {
                var xmlname = memberName;

                list.Add("Serialization.CompoundObjectSerialization", disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All,
                    this.xmlNamespace, xmlname, memberType, memberName, backingStoreType, backingStoreName);
            }
        }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:13,代码来源:CompoundObjectPropertyTemplate.cs

示例2: AddSerialization

 protected virtual void AddSerialization(Serialization.SerializationMembersList list, string name)
 {
     if (list != null)
         list.Add(disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All, modulenamespace, name, referencedType, ApplyResultExpression());
 }
开发者ID:daszat,项目名称:zetbox,代码行数:5,代码来源:CalculatedProperty.cs

示例3: AddSerialization

 protected virtual void AddSerialization(Serialization.SerializationMembersList list, string sourceMember, string targetMember, string targetGuidMember)
 {
     if (list != null)
     {
         if (relDataTypeExportable && !disableExport)
         {
             list.Add("Serialization.ObjectReferencePropertySerialization", Serialization.SerializerType.ImportExport, moduleNamespace, name, sourceMember, targetMember, targetGuidMember);
         }
         list.Add("Serialization.ObjectReferencePropertySerialization",
             Templates.Serialization.SerializerType.Service, moduleNamespace, name, sourceMember, targetMember, targetGuidMember);
     }
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:12,代码来源:ObjectReferencePropertyTemplate.cs

示例4: AddSerialization

 protected override void AddSerialization(Serialization.SerializationMembersList list, string name)
 {
     if (list != null)
     {
         if (HasDefaultValue)
         {
             list.Add("Serialization.SimplePropertyWithDefaultSerialization",
                 disableExport ? Templates.Serialization.SerializerType.Binary : Serialization.SerializerType.All,
                 _prop.Module.Namespace,
                 name,
                 type,
                 backingName,
                 IsSetFlagName);
         }
         else
         {
             list.Add("Serialization.SimplePropertySerialization",
                 disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All,
                 _prop.Module.Namespace,
                 name,
                 type,
                 backingName);
         }
     }
 }
开发者ID:jrgcubano,项目名称:zetbox,代码行数:25,代码来源:NotifyingDataProperty.cs

示例5: AddSerialization

 protected virtual void AddSerialization(Serialization.SerializationMembersList list, string name)
 {
     if (list != null)
         list.Add(disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All, modulenamespace, name, type, backingName);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:5,代码来源:NotifyingValueProperty.cs

示例6: AddSerialization

 protected virtual void AddSerialization(Serialization.SerializationMembersList list, string memberName, bool eagerLoading)
 {
     if (list != null && eagerLoading)
     {
         list.Add("Serialization.EagerLoadingSerialization", Serialization.SerializerType.Binary, null, null, memberName, true, rel.GetRelationType() == RelationType.n_m);
     }
 }
开发者ID:daszat,项目名称:zetbox,代码行数:7,代码来源:ObjectListProperty.cs


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