I am using my own LargeWholeNumber
class for integer values. In System.Math
class there are a number of Max
methods for applicable types. Am I able to create an overload for this Max
method which compares LargeWholeNumber
instances also?
I tried creating my own Math
class which inherits from System.Math
, but it says "Cannot inherit from sealed class 'Math'"
.
Thanks in advance for your advices.