In the following website http://www.dotnetperls.com/list-add this text is there
Importantly, the angle brackets are part of the declaration type, not conditional operators that mean less or more than. They are treated differently in the language.
Please explain what does it mean?
Loading
Sukesh MarlaPosted Aug 30, 2012, 5:40 AM
List x=new List();
in above sentence we have written string between '<' and '>'
He want to say here < and > doesnt mean conditional operator Less than and greater than.
Instead they are used here for declaring something
ex:here with the help of angualr brackets and DataType between them we are stating that
object will contain colelction of string types.
Check this is correct answer if it helped
Sukesh MarlaPosted Aug 30, 2012, 11:05 AM
Posted Aug 30, 2012, 5:43 AM
Posted Aug 30, 2012, 5:38 AM
VulpesPosted Aug 30, 2012, 5:30 AM
They are not the same as the 'less than' or 'greater than' operators < and > respectively which are used in an expression such as the following:
int i = 3;
int j = 4;
bool b = (j > i ) && (j < 2 * i); // true