Esempio n. 1
0
        public override object Load(StreamContext inputSource,
                                    Type instanceType)
        {
            if (instanceType == null)
            {
                throw new ArgumentNullException("instanceType");
            }

            return(Activation.FromStreamContext(instanceType, inputSource));
        }
Esempio n. 2
0
 public object ReadValue(Type componentType)
 {
     return(Activation.FromStreamContext(componentType, this));
 }