public object GetProperty(string propertyName) { var result = _jsValue.GetProperty(propertyName); if (result == null) { return(null); } object unpacked = null; Helpers.Unpackvalue(ref unpacked, result); return(unpacked); }
public override bool TryGetMember(GetMemberBinder binder, out object result) { var property = _jsValue.GetProperty(binder.Name); if (property == null) { result = null; } else { object unpacked = null; Helpers.Unpackvalue(ref unpacked, property); result = unpacked; } return(true); }