-
|
Hello. In some cases, it is possible to have functions with code paths which are never executed. public static long DoSomething(nint x)
{
switch(Unsafe.SizeOf<nint>())
{
case 4:
// do something for 32bit environment
return ResultFor32;
case 8:
// do something for 64bit environment
return ResultFor64;
default:
throw new NotSupportedException();
}
}Because size of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Please use |
Beta Was this translation helpful? Give feedback.
Please use
[ExcludeFromCodeCoverage]attribute for the method.coverlet/test/coverlet.core.tests/Samples/Samples.cs
Line 276 in 893dcc8