Hey,
was wandering if somebody could help we with some classes and objects, I haven't done c# in a while and i can't remember.
Could someone tell me what String falls under in c#, ie allowing one to write somthing like
static void Main(string[] args)
{
string s = "foobar";
int i = s.IndexOf('f');
}
How would a write my own class that I could handle like the string class
i.e.
assume i have 'text;.
static void Main(string[] args)
{
text s = "foobar";
s.myownmethod();
}
how would i write the text class so that it acts the same as
the string class? without a constructor?
Thanks
any help would be appreciated.