J
John Bailo
string s = "ABC";
Debug.WriteLine(
s.Length>5?"greater":"lesser"
);
The compiler reports:
Operator '>' cannot be applied to operands of type 'string' and 'int'
Isn't Length an int ?
Debug.WriteLine(
s.Length>5?"greater":"lesser"
);
The compiler reports:
Operator '>' cannot be applied to operands of type 'string' and 'int'
Isn't Length an int ?