I have the following abstract base class:
public abstract class HashBase
{
public abstract byte[] Hash(byte[] value);
}
And then I go ahead and implement that class:
public class CRC32Hash : HashBase
{
public override byte[] Hash(params byte[] value)
{
return SomeRandomHashCalculator.Hash(value);
}
}
Compile...and it works!
- Is this advised or does it lead to "evil" code?
- Is "params" sort of syntactic sugar?