length of string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the simple code,

string m;
m= "This is a test string";
int l;
l= m.length;

Which give the error,

CS0117: 'string' does not contain a definition for 'length'

What's wrong with the code?
 
It is uppercase L in : m.Length

I have the simple code,

string m;
m= "This is a test string";
int l;
l= m.length;

Which give the error,

CS0117: 'string' does not contain a definition for 'length'

What's wrong with the code?
 
Back
Top