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 void FillFromAttribute(Model model, Describer describer, KnownTypeAttribute attr) { MethodName = attr.MethodName; Type = describer.GetTypeRefAddOutlineToModel(model, attr.Type); }