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

Skip to content

Commit 5607205

Browse files
committed
Drop CLSCompliant attributes to get rid of warnings
1 parent f811e51 commit 5607205

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/runtime/pyint.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public PyInt(int value) : base(FromInt(value))
6969
/// <remarks>
7070
/// Creates a new Python int from a uint32 value.
7171
/// </remarks>
72-
[CLSCompliant(false)]
7372
public PyInt(uint value) : base(FromLong(value))
7473
{
7574
}
@@ -99,7 +98,6 @@ private static IntPtr FromLong(long value)
9998
/// <remarks>
10099
/// Creates a new Python int from a uint64 value.
101100
/// </remarks>
102-
[CLSCompliant(false)]
103101
public PyInt(ulong value) : base(FromLong((long)value))
104102
{
105103
}
@@ -122,7 +120,6 @@ public PyInt(short value) : this((int)value)
122120
/// <remarks>
123121
/// Creates a new Python int from a uint16 value.
124122
/// </remarks>
125-
[CLSCompliant(false)]
126123
public PyInt(ushort value) : this((int)value)
127124
{
128125
}
@@ -145,7 +142,6 @@ public PyInt(byte value) : this((int)value)
145142
/// <remarks>
146143
/// Creates a new Python int from an sbyte value.
147144
/// </remarks>
148-
[CLSCompliant(false)]
149145
public PyInt(sbyte value) : this((int)value)
150146
{
151147
}

src/runtime/pylong.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public PyLong(int value) : base(FromInt(value))
6969
/// <remarks>
7070
/// Creates a new PyLong from a uint32 value.
7171
/// </remarks>
72-
[CLSCompliant(false)]
7372
public PyLong(uint value) : base(FromInt((int)value))
7473
{
7574
}
@@ -105,7 +104,6 @@ private static IntPtr FromULong(ulong value)
105104
/// <remarks>
106105
/// Creates a new PyLong from a uint64 value.
107106
/// </remarks>
108-
[CLSCompliant(false)]
109107
public PyLong(ulong value) : base(FromULong(value))
110108
{
111109
}
@@ -128,7 +126,6 @@ public PyLong(short value) : base(FromInt((int)value))
128126
/// <remarks>
129127
/// Creates a new PyLong from an uint16 value.
130128
/// </remarks>
131-
[CLSCompliant(false)]
132129
public PyLong(ushort value) : base(FromInt((int)value))
133130
{
134131
}
@@ -151,7 +148,6 @@ public PyLong(byte value) : base(FromInt((int)value))
151148
/// <remarks>
152149
/// Creates a new PyLong from an sbyte value.
153150
/// </remarks>
154-
[CLSCompliant(false)]
155151
public PyLong(sbyte value) : base(FromInt((int)value))
156152
{
157153
}

0 commit comments

Comments
 (0)