I have my own Math library and I want it to be called "Math" (I'd been calling it "Maths"). It's in its own namespace, but the class name being "Math" still conflicts with System.Math. What I did to solve this was to add a wrapper for everything in System.Math to my library that just calls the System.Math function explicitly, and then I have to add
using Math = Yushatak.Libraries.Math;
to every file that uses Math.* functionality. I don't feel like this is the best way to do this, and I also fear that the wrapping will cause extra overhead, and that's not someplace where you want overhead either..
Advice? Is there a better way to "extend" System.Math? Is this just a bad idea and I should go back to "Maths"? Any suggestions at all? :P
Example of wrapped method:
public static decimal Abs(decimal value)
{
return System.Math.Abs(value);
}