private object InstantiateWithCustomTypeHandler(UnmarshallingContext context) { var contextState = context.SaveState(); try { var fieldHasValue = SeekToField(context, _customTypeHandlerAspect); if (!fieldHasValue) { context.RestoreState(contextState); return InstantiateForVersionWithoutCustomTypeHandler(context); } var customTypeHandler = (IInstantiatingTypeHandler) _customTypeHandlerAspect ._typeHandler; return context.SlotFormat().DoWithSlotIndirection(context, new _IClosure4_2055(customTypeHandler , context)); } finally { context.RestoreState(contextState); } }
public override void Activate(UnmarshallingContext context) { if (!CheckEnabled(context, context)) { return; } context.SlotFormat().DoWithSlotIndirection(context, new _IClosure4_110(this, context )); }