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); } }
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; }
public ProtoContractDetails(Model model, Describer describer, ProtoContractAttribute attr) { FillFromAttr(model, describer, attr); }
public void FillFromAttribute(Model model, Describer describer, KnownTypeAttribute attr) { MethodName = attr.MethodName; Type = describer.GetTypeRefAddOutlineToModel(model, attr.Type); }
public KnownTypeItem(Model model, Describer describer, KnownTypeAttribute attr) { FillFromAttribute(model, describer, attr); }
public ProtoIncludeItem(Model model, Describer describer, ProtoIncludeAttribute attr) { FillFromAttr(model, describer, attr); }