예제 #1
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;
 }
예제 #2
0
 public void FillFromAttribute(Model model, Describer describer, KnownTypeAttribute attr)
 {
     MethodName = attr.MethodName;
     Type       = describer.GetTypeRefAddOutlineToModel(model, attr.Type);
 }