forked from IronLanguages/ironpython3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemberOverloadTest.cs
More file actions
48 lines (39 loc) · 1.52 KB
/
MemberOverloadTest.cs
File metadata and controls
48 lines (39 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using IronPython.Runtime;
namespace IronPythonTest {
public class MemberOverloadTest {
private int _prop;
public int Prop {
get {
return _prop;
}
set {
_prop = value;
}
}
public void SetMember(string name, object value) {
throw new InvalidOperationException("Do not call SetMember0");
}
public void SetMember(CodeContext context, string name, object value) {
throw new InvalidOperationException("Do not call SetMember1");
}
public object GetBoundMember(string name) {
throw new InvalidOperationException("Do not call GetBoundMember0");
}
public object GetBoundMember(CodeContext context, string name) {
throw new InvalidOperationException("Do not call GetBoundMember1");
}
public object GetCustomMember(string name) {
throw new InvalidOperationException("Do not call GetCustomMember0");
}
public object GetCustomMember(CodeContext context, string name) {
throw new InvalidOperationException("Do not call GetCustomMember1");
}
public void DeleteMember(string name) {
throw new InvalidOperationException("Do not call DeleteMember0");
}
public void DeleteMember(CodeContext context, string name) {
throw new InvalidOperationException("Do not call DeleteMember1");
}
}
}