Can I Extend method of Double Class?
eg:
Double value;
then I can use
value.Foobar(); just like value.ToString(); where Foobar is my own extended function of Double Class.
static string FooBar(this double value) { return "FooBar" + value.ToString(); }
If I work with .net 2.0
How Can I finished the same work?
Sorry you need to be using .net Framework 3.5 to be able to use extension methods