Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Extending built-in classes
Started by wasuplee123 at 07-21-2008 4:26 PM. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-21-2008, 4:26 PM
wasuplee123 is not online. Last active: 9/9/2008 9:31:45 AM wasuplee123

Top 25 Posts
Joined on 06-04-2008
Posts 8
Extending built-in classes
Reply Quote
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.
   Report 
  07-22-2008, 1:43 AM
Bill is not online. Last active: 12/18/2009 11:43:49 PM Bill

Top 10 Posts
Joined on 06-28-2008
Posts 15
Re: Extending built-in classes
Reply Quote
This feature is in our developing plan, but it is not implemented in Nuva yet.
   Report 
Post
Macrobject Comm... » Developing Tool... » Nuva Language » Extending built-in classes

Powered by Community Server, by Telligent Systems