public EcmaValue(object value) { EcmaValue resolved = EcmaValueUtility.ConvertFromObject(value); this.handle = resolved.handle; this.binder_ = resolved.binder; }
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; }