CodingIsFun
Programmer
Anyone come across this.
here is my code:
using System;
using System.Net;
using System.Xml;
using System.Collections;
namespace test
{
public class string_test
{
public string string_test(string t)
{
return t.Substring(1,1);
}
}
}
I get the error t.Substring does not exists
In the command window if I type ? t it returns the string content. If I do the same in the command window t.Substring(1,1) I get the same error.
Am I missing a reference to the string functions.
thanks in advance..
here is my code:
using System;
using System.Net;
using System.Xml;
using System.Collections;
namespace test
{
public class string_test
{
public string string_test(string t)
{
return t.Substring(1,1);
}
}
}
I get the error t.Substring does not exists
In the command window if I type ? t it returns the string content. If I do the same in the command window t.Substring(1,1) I get the same error.
Am I missing a reference to the string functions.
thanks in advance..