예제 #1
0
 public void MergeContext(PofContext context)
 {
     foreach (var kvp in context.typeByTypeId)
     {
         if (kvp.Key >= 0)
         {
             RegisterPortableObjectType(kvp.Key, kvp.Value);
         }
     }
 }
예제 #2
0
 public void MergeContext(PofContext context)
 {
     foreach (var kvp in context.typeByTypeId)
     {
         var pofId = kvp.Key;
         if (pofId >= 0)
         {
             var pofType      = kvp.Value;
             var pofActivator = context.activatorsByType[pofType];
             RegisterPortableObjectTypePrivate(pofId, pofType);
             SetActivator(pofType, pofActivator);
         }
     }
 }
예제 #3
0
 public PofSerializer(PofContext context)
 {
     this.context = context;
 }