File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,15 @@ public Indexer()
21
21
}
22
22
23
23
24
- public bool CanGet => GetterBinder . Count > 0 ;
24
+ public bool CanGet
25
+ {
26
+ get { return GetterBinder . Count > 0 ; }
27
+ }
25
28
26
- public bool CanSet => SetterBinder . Count > 0 ;
29
+ public bool CanSet
30
+ {
31
+ get { return SetterBinder . Count > 0 ; }
32
+ }
27
33
28
34
29
35
public void AddProperty ( PropertyInfo pi )
Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ public void Reset()
76
76
//Not supported in python.
77
77
}
78
78
79
- public object Current => _current ;
79
+ public object Current
80
+ {
81
+ get { return _current ; }
82
+ }
80
83
81
84
#endregion
82
85
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace Python.Runtime
13
13
public class PyObject : DynamicObject , IDisposable
14
14
{
15
15
protected internal IntPtr obj = IntPtr . Zero ;
16
- private bool disposed ;
16
+ private bool disposed = false ;
17
17
18
18
/// <summary>
19
19
/// PyObject Constructor
@@ -54,7 +54,10 @@ protected PyObject()
54
54
/// Gets the native handle of the underlying Python object. This
55
55
/// value is generally for internal use by the PythonNet runtime.
56
56
/// </remarks>
57
- public IntPtr Handle => obj ;
57
+ public IntPtr Handle
58
+ {
59
+ get { return obj ; }
60
+ }
58
61
59
62
60
63
/// <summary>
Original file line number Diff line number Diff line change 1
1
using System ;
2
+ using System . Collections ;
2
3
using System . Reflection ;
3
4
4
5
namespace Python . Runtime
5
6
{
6
- /// <summary>
7
- /// Implements a Python type that provides access to CLR object methods.
8
- /// </summary>
7
+ //========================================================================
8
+ // Implements a Python type that provides access to CLR object methods.
9
+ //========================================================================
10
+
9
11
internal class TypeMethod : MethodObject
10
12
{
11
13
public TypeMethod ( Type type , string name , MethodInfo [ ] info ) :
You can’t perform that action at this time.
0 commit comments