File tree Expand file tree Collapse file tree 12 files changed +37
-0
lines changed Expand file tree Collapse file tree 12 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ namespace System
15
15
/// </summary>
16
16
public sealed class AppDomain : MarshalByRefObject
17
17
{
18
+ // these fields are required in the native end
19
+ #pragma warning disable 0649 , 0169
18
20
[ FieldNoReflection ]
19
21
private object _appDomain ;
20
22
private string _friendlyName ;
23
+ #pragma warning restore 0649
24
+ #pragma warning restore 0169
21
25
22
26
private AppDomain ( )
23
27
{
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ public struct Boolean
21
21
/// </summary>
22
22
public static readonly string TrueString = "True" ;
23
23
24
+ // this field is required in the native end
25
+ #pragma warning disable 0649
24
26
private bool _value ;
27
+ #pragma warning restore 0649
25
28
26
29
/// <summary>
27
30
/// Converts the value of this instance to its equivalent string representation (either "True" or "False").
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ namespace System
14
14
[ Serializable ]
15
15
public struct Byte
16
16
{
17
+ // this field is required in the native end
18
+ #pragma warning disable 0649
17
19
private byte _value ;
20
+ #pragma warning restore 0649
18
21
19
22
/// <summary>
20
23
/// Represents the largest possible value of a Byte. This field is constant.
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ namespace System
12
12
[ Serializable ]
13
13
public struct Char
14
14
{
15
+ // this field is required in the native end
16
+ #pragma warning disable 0649
15
17
private char _value ;
18
+ #pragma warning restore 0649
16
19
17
20
/// <summary>
18
21
/// Represents the largest possible value of a Char. This field is constant.
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ namespace System
15
15
[ Serializable ]
16
16
public struct Double
17
17
{
18
+ // this field is required in the native end
19
+ #pragma warning disable 0649
18
20
internal double _value ;
21
+ #pragma warning restore 0649
19
22
20
23
/// <summary>
21
24
/// Represents the smallest possible value of a Double. This field is constant.
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ public class Exception
17
17
private readonly string _message ;
18
18
private readonly Exception _innerException ;
19
19
20
+ // this field is required in the native end
21
+ #pragma warning disable 0169
20
22
private object _stackTrace ;
23
+ #pragma warning restore 0169
21
24
22
25
/// <summary>
23
26
/// Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ namespace System
14
14
[ Serializable ]
15
15
public struct Int16
16
16
{
17
+ // this field is required in the native end
18
+ #pragma warning disable 0649
17
19
internal short _value ;
20
+ #pragma warning restore 0649
18
21
19
22
/// <summary>
20
23
/// Represents the largest possible value of an Int16. This field is constant.
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ namespace System
14
14
[ Serializable , CLSCompliant ( false ) ]
15
15
public struct SByte
16
16
{
17
+ // this field is required in the native end
18
+ #pragma warning disable 0649
17
19
private sbyte _value ;
20
+ #pragma warning restore 0649
18
21
19
22
/// <summary>
20
23
/// Represents the largest possible value of SByte. This field is constant.
Original file line number Diff line number Diff line change @@ -14,13 +14,16 @@ namespace System.Threading
14
14
/// </summary>
15
15
public sealed class Thread
16
16
{
17
+ // these fields are required in the native end
18
+ #pragma warning disable 0169
17
19
private Delegate _delegate ;
18
20
private int _priority ;
19
21
[ Reflection . FieldNoReflection ]
20
22
private object _thread ;
21
23
[ Reflection . FieldNoReflection ]
22
24
private object _appDomain ;
23
25
private int _id ;
26
+ #pragma warning restore 0169
24
27
25
28
/// <summary>
26
29
/// Initializes a new instance of the Thread class.
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ namespace System.Threading
20
20
/// </summary>
21
21
public sealed class Timer : MarshalByRefObject , IDisposable
22
22
{
23
+ // these fields are required in the native end
24
+ #pragma warning disable 0169
23
25
[ Reflection . FieldNoReflection ]
24
26
private object _timer ;
25
27
private object _state ;
26
28
private TimerCallback _callback ;
29
+ #pragma warning restore 0169
27
30
28
31
/// <summary>
29
32
/// Initializes a new instance of the Timer class, using a 32-bit signed integer to specify the time interval.
You can’t perform that action at this time.
0 commit comments