Re: Extending built-in classes
Nuva Language
Extending built-in classes
wasuplee123
07-21-2008, 4:26 PM
Is there any way to extend types such as the string type?
for example, right now you can use the Contains method like this:
var strVar = "test";
strVar.Contains("t");
Can I define my own methods for strings? (e.g. If I want a method called MyMethod):
strVar.MyMethod();
I believe JavaScript allows you to do this as well as the latest version of the .NET framework.
Re: Extending built-in classes
Bill
07-22-2008, 1:43 AM
This feature is in our developing plan, but it is not implemented in Nuva yet.