示例#1
0
        public EcmaValue(object value)
        {
            EcmaValue resolved = EcmaValueUtility.ConvertFromObject(value);

            this.handle  = resolved.handle;
            this.binder_ = resolved.binder;
        }
示例#2
0
        public EcmaValue(SerializationInfo info, StreamingContext context)
        {
            Type      type     = (Type)info.GetValue("ut", typeof(Type));
            object    value    = info.GetValue("uo", type);
            EcmaValue resolved = EcmaValueUtility.ConvertFromObject(value);

            this.handle  = resolved.handle;
            this.binder_ = resolved.binder;
        }