Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77b49a2

Browse files
author
dse
committed
Static readonly fields (related to build depented values) replaced by properties.
1 parent 633a636 commit 77b49a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime/runtime.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class Runtime
8484
// We needs to replace all public constants to static readonly fields to allow
8585
// binary substitution of different Python.Runtime.dll builds in a target application.
8686

87-
public static readonly int UCS = _UCS;
87+
public static int UCS => _UCS;
8888

8989
#if UCS4
9090
internal const int _UCS = 4;
@@ -110,8 +110,8 @@ public class Runtime
110110
// We needs to replace all public constants to static readonly fields to allow
111111
// binary substitution of different Python.Runtime.dll builds in a target application.
112112

113-
public readonly string pyversion = _pyversion;
114-
public readonly string pyver = _pyver;
113+
public string pyversion => _pyversion;
114+
public string pyver => _pyver;
115115

116116
#if PYTHON27
117117
internal const string _pyversion = "2.7";

0 commit comments

Comments
 (0)