Skip to content

Commit 42e28cf

Browse files
authored
Add CLS Compliance Attributes
Signed-off-by: Xen <lordofxen@deskasoft.com>
1 parent e15386f commit 42e28cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

HashifyNet/Core/IHashFunction_Extensions.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
150150
/// <returns>
151151
/// Hash value of the data as byte array.
152152
/// </returns>
153+
[CLSCompliant(false)]
153154
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, sbyte data) where CName : IHashConfig<CName>
154155
{
155156
return hashFunction.ComputeHash(
@@ -195,6 +196,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
195196
/// <returns>
196197
/// Hash value of the data as byte array.
197198
/// </returns>
199+
[CLSCompliant(false)]
198200
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, uint data) where CName : IHashConfig<CName>
199201
{
200202
return hashFunction.ComputeHash(
@@ -209,6 +211,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
209211
/// <returns>
210212
/// Hash value of the data as byte array.
211213
/// </returns>
214+
[CLSCompliant(false)]
212215
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, ulong data) where CName : IHashConfig<CName>
213216
{
214217
return hashFunction.ComputeHash(
@@ -223,6 +226,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
223226
/// <returns>
224227
/// Hash value of the data as byte array.
225228
/// </returns>
229+
[CLSCompliant(false)]
226230
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, ushort data) where CName : IHashConfig<CName>
227231
{
228232
return hashFunction.ComputeHash(
@@ -354,6 +358,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
354358
/// <returns>
355359
/// Hash value of the data as byte array.
356360
/// </returns>
361+
[CLSCompliant(false)]
357362
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, sbyte data, int desiredHashSize) where CName : IHashConfig<CName>
358363
{
359364
return hashFunction.ComputeHash(
@@ -405,6 +410,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
405410
/// <returns>
406411
/// Hash value of the data as byte array.
407412
/// </returns>
413+
[CLSCompliant(false)]
408414
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, uint data, int desiredHashSize) where CName : IHashConfig<CName>
409415
{
410416
return hashFunction.ComputeHash(
@@ -421,6 +427,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
421427
/// <returns>
422428
/// Hash value of the data as byte array.
423429
/// </returns>
430+
[CLSCompliant(false)]
424431
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, ulong data, int desiredHashSize) where CName : IHashConfig<CName>
425432
{
426433
return hashFunction.ComputeHash(
@@ -437,6 +444,7 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
437444
/// <returns>
438445
/// Hash value of the data as byte array.
439446
/// </returns>
447+
[CLSCompliant(false)]
440448
public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFunction, ushort data, int desiredHashSize) where CName : IHashConfig<CName>
441449
{
442450
return hashFunction.ComputeHash(
@@ -525,4 +533,4 @@ public static IHashValue ComputeHash<CName>(this IHashFunction<CName> hashFuncti
525533

526534
#endregion
527535
}
528-
}
536+
}

0 commit comments

Comments
 (0)