...is it possible?
For example, can I add this simple function...
public static double Deg2Rad(double degrees) {
return Math.PI / 180 * degrees;
}
...to the Convert class?
So (using the default..."usings") you can call
double radians = Convert.Deg2Rad(123);
Can this be done? If so, how?
No you can't, but you can add an Extension method to
doubleand call it likein an static class add the following extension method: