Skip to content

Commit 33542d3

Browse files
authored
Add CLS Compliant Attributes
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent 2afa222 commit 33542d3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

HashifyNet/Core/DataType/HashValue.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public BigInteger AsBigInteger()
106106
/// </summary>
107107
/// <returns><inheritdoc/></returns>
108108
/// <exception cref="InvalidOperationException"><inheritdoc/></exception>
109+
[CLSCompliant(false)]
109110
public ulong AsUInt64()
110111
{
111112
byte[] data = AsByteArray();
@@ -162,6 +163,7 @@ public int AsInt32()
162163
/// </summary>
163164
/// <returns><inheritdoc/></returns>
164165
/// <exception cref="InvalidOperationException"><inheritdoc/></exception>
166+
[CLSCompliant(false)]
165167
public uint AsUInt32()
166168
{
167169
byte[] data = AsByteArray();
@@ -222,6 +224,7 @@ public short AsInt16()
222224
/// </summary>
223225
/// <returns><inheritdoc/></returns>
224226
/// <exception cref="InvalidOperationException"><inheritdoc/></exception>
227+
[CLSCompliant(false)]
225228
public ushort AsUInt16()
226229
{
227230
byte[] data = AsByteArray();
@@ -636,4 +639,4 @@ public virtual IHashValue Coerce(int bitLength)
636639
return new HashValue(ArrayHelpers.CoerceToArray(Hash.ToArray(), bitLength), bitLength);
637640
}
638641
}
639-
}
642+
}

0 commit comments

Comments
 (0)