I'm trying to port this C# code:
public static ulong WILDCARD_COLLISION_TYPE
{
get
{
int parse = ~0;
return (ulong)parse;
}
}
If I understand correctly, doesn't the ~
symbol perform a bitwise complement so what is the point of doing ~0
? and then returning it?