The folloging is from a book on C#.
To illustrate, the following Add() method is not CLS-compliant, as the parameters and return values make use of unsigned data (which is not a requirement of the CLS):
class Calc
{
// Exposed unsigned data is not CLS compliant!
public ulong Add(ulong x, ulong y)
{ return x + y;}
}
What does this mean? How can function not take ulong
value? Is that not covered in CLS (Common Language Specification) for C#?
I did try the example and it builds and runs fine. I thought passing a ulong
argument is very basic. What does this paragraph rally means?