public object Read(IReadContext context) { var wrapper = (PSObjectWrapper)context.ReadObject(TypeHandler()); PSObject obj = (PSObject)((UnmarshallingContext)context).PersistentObject(); return(wrapper.Original(obj, context.ObjectContainer())); }
public object Read(IReadContext context) { var wrapper = (PSObjectWrapper)context.ReadObject(TypeHandler()); PSObject obj = (PSObject) ((UnmarshallingContext) context).PersistentObject(); return wrapper.Original(obj, context.ObjectContainer()); }