Exemple #1
0
 public void FillFromAttr(Model model, Describer describer, ProtoContractAttribute attr)
 {
     Name                = attr.Name;
     ImplicitFirstTag    = attr.ImplicitFirstTag;
     UseProtoMembersOnly = attr.UseProtoMembersOnly;
     IgnoreListHandling  = attr.IgnoreListHandling;
     ImplicitFields      = attr.ImplicitFields;
     InferTagFromName    = attr.InferTagFromName;
     DataMemberOffset    = attr.DataMemberOffset;
     SkipConstructor     = attr.SkipConstructor;
     AsReferenceDefault  = attr.AsReferenceDefault;
     IsGroup             = attr.IsGroup;
     //EnumPassthru = attr.EnumPassthru;
     if (attr.Surrogate != null)
     {
         Surrogate = describer.GetNameAddWithReferencesToModel(model, attr.Surrogate);
     }
 }
Exemple #2
0
 public void FillFromAttr(Model model, Describer describer, ProtoIncludeAttribute attr)
 {
     Tag           = attr.Tag;
     KnownTypeName = attr.KnownTypeName;
     if (attr.KnownType != null)
     {
         KnownType = describer.GetTypeRefAddOutlineToModel(model, attr.KnownType);
     }
     else
     {
         var knownType = Type.GetType(attr.KnownTypeName, false);
         if (knownType != null)
         {
             KnownType = describer.GetTypeRefAddOutlineToModel(model, knownType);
         }
     }
     DataFormat = attr.DataFormat;
 }
Exemple #3
0
 public ProtoContractDetails(Model model, Describer describer, ProtoContractAttribute attr)
 {
     FillFromAttr(model, describer, attr);
 }
Exemple #4
0
 public void FillFromAttribute(Model model, Describer describer, KnownTypeAttribute attr)
 {
     MethodName = attr.MethodName;
     Type       = describer.GetTypeRefAddOutlineToModel(model, attr.Type);
 }
Exemple #5
0
 public KnownTypeItem(Model model, Describer describer, KnownTypeAttribute attr)
 {
     FillFromAttribute(model, describer, attr);
 }
Exemple #6
0
 public ProtoIncludeItem(Model model, Describer describer, ProtoIncludeAttribute attr)
 {
     FillFromAttr(model, describer, attr);
 }