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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top