public void MergeContext(PofContext context) { foreach (var kvp in context.typeByTypeId) { if (kvp.Key >= 0) { RegisterPortableObjectType(kvp.Key, kvp.Value); } } }
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); } } }
public PofSerializer(PofContext context) { this.context = context; }