2
// Copyright (c) 2007 James Newton-King
4
// Permission is hereby granted, free of charge, to any person
5
// obtaining a copy of this software and associated documentation
6
// files (the "Software"), to deal in the Software without
7
// restriction, including without limitation the rights to use,
8
// copy, modify, merge, publish, distribute, sublicense, and/or sell
9
// copies of the Software, and to permit persons to whom the
10
// Software is furnished to do so, subject to the following
13
// The above copyright notice and this permission notice shall be
14
// included in all copies or substantial portions of the Software.
16
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
// OTHER DEALINGS IN THE SOFTWARE.
26
#if !(NET35 || NET20 || WINDOWS_PHONE || PORTABLE)
28
using System.Collections.Generic;
31
using System.Linq.Expressions;
34
namespace Newtonsoft.Json.Utilities
36
internal class DynamicProxy<T>
38
public virtual IEnumerable<string> GetDynamicMemberNames(T instance)
43
public virtual bool TryBinaryOperation(T instance, BinaryOperationBinder binder, object arg, out object result)
49
public virtual bool TryConvert(T instance, ConvertBinder binder, out object result)
55
public virtual bool TryCreateInstance(T instance, CreateInstanceBinder binder, object[] args, out object result)
61
public virtual bool TryDeleteIndex(T instance, DeleteIndexBinder binder, object[] indexes)
66
public virtual bool TryDeleteMember(T instance, DeleteMemberBinder binder)
71
public virtual bool TryGetIndex(T instance, GetIndexBinder binder, object[] indexes, out object result)
77
public virtual bool TryGetMember(T instance, GetMemberBinder binder, out object result)
83
public virtual bool TryInvoke(T instance, InvokeBinder binder, object[] args, out object result)
89
public virtual bool TryInvokeMember(T instance, InvokeMemberBinder binder, object[] args, out object result)
95
public virtual bool TrySetIndex(T instance, SetIndexBinder binder, object[] indexes, object value)
100
public virtual bool TrySetMember(T instance, SetMemberBinder binder, object value)
105
public virtual bool TryUnaryOperation(T instance, UnaryOperationBinder binder, out object result)
b'\\ No newline at end of file'