~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicProxy.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#region License
 
2
// Copyright (c) 2007 James Newton-King
 
3
//
 
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
 
11
// conditions:
 
12
//
 
13
// The above copyright notice and this permission notice shall be
 
14
// included in all copies or substantial portions of the Software.
 
15
//
 
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.
 
24
#endregion
 
25
 
 
26
#if !(NET35 || NET20 || WINDOWS_PHONE || PORTABLE)
 
27
using System;
 
28
using System.Collections.Generic;
 
29
using System.Dynamic;
 
30
using System.Linq;
 
31
using System.Linq.Expressions;
 
32
using System.Text;
 
33
 
 
34
namespace Newtonsoft.Json.Utilities
 
35
{
 
36
  internal class DynamicProxy<T>
 
37
  {
 
38
    public virtual IEnumerable<string> GetDynamicMemberNames(T instance)
 
39
    {
 
40
      return new string[0];
 
41
    }
 
42
 
 
43
    public virtual bool TryBinaryOperation(T instance, BinaryOperationBinder binder, object arg, out object result)
 
44
    {
 
45
      result = null;
 
46
      return false;
 
47
    }
 
48
 
 
49
    public virtual bool TryConvert(T instance, ConvertBinder binder, out object result)
 
50
    {
 
51
      result = null;
 
52
      return false;
 
53
    }
 
54
 
 
55
    public virtual bool TryCreateInstance(T instance, CreateInstanceBinder binder, object[] args, out object result)
 
56
    {
 
57
      result = null;
 
58
      return false;
 
59
    }
 
60
 
 
61
    public virtual bool TryDeleteIndex(T instance, DeleteIndexBinder binder, object[] indexes)
 
62
    {
 
63
      return false;
 
64
    }
 
65
 
 
66
    public virtual bool TryDeleteMember(T instance, DeleteMemberBinder binder)
 
67
    {
 
68
      return false;
 
69
    }
 
70
 
 
71
    public virtual bool TryGetIndex(T instance, GetIndexBinder binder, object[] indexes, out object result)
 
72
    {
 
73
      result = null;
 
74
      return false;
 
75
    }
 
76
 
 
77
    public virtual bool TryGetMember(T instance, GetMemberBinder binder, out object result)
 
78
    {
 
79
      result = null;
 
80
      return false;
 
81
    }
 
82
 
 
83
    public virtual bool TryInvoke(T instance, InvokeBinder binder, object[] args, out object result)
 
84
    {
 
85
      result = null;
 
86
      return false;
 
87
    }
 
88
 
 
89
    public virtual bool TryInvokeMember(T instance, InvokeMemberBinder binder, object[] args, out object result)
 
90
    {
 
91
      result = null;
 
92
      return false;
 
93
    }
 
94
 
 
95
    public virtual bool TrySetIndex(T instance, SetIndexBinder binder, object[] indexes, object value)
 
96
    {
 
97
      return false;
 
98
    }
 
99
 
 
100
    public virtual bool TrySetMember(T instance, SetMemberBinder binder, object value)
 
101
    {
 
102
      return false;
 
103
    }
 
104
 
 
105
    public virtual bool TryUnaryOperation(T instance, UnaryOperationBinder binder, out object result)
 
106
    {
 
107
      result = null;
 
108
      return false;
 
109
    }
 
110
  }
 
111
}
 
112
#endif
 
 
b'\\ No newline at end of file'