Example #1
0
        public object Read(IReadContext context)
        {
            var      wrapper = (PSObjectWrapper)context.ReadObject(TypeHandler());
            PSObject obj     = (PSObject)((UnmarshallingContext)context).PersistentObject();

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