NewsBot
1
Hi guys, I am learning C# write now and*at*the chapter of Generics, So far I know this:-
example:-
public*class Circle*
{
***.....
}*
The between the*angle brackets*specifys the type of the instance of the class*Circle it*will be by*default*(other than the object class) by which it will be treated like (ex. int, char or any class that is specified). My question is in here:-
*public*class Circle where T*
{
***.....
}*
What is ment by where T*here? and*by what it*is saying*why do I need it as long as I specify the ? is it usefull for something else? Interfaces or abstract classes*for example?
And thank you in advace.
More...
View All Our Microsoft Related Feeds
example:-
public*class Circle*
{
***.....
}*
The between the*angle brackets*specifys the type of the instance of the class*Circle it*will be by*default*(other than the object class) by which it will be treated like (ex. int, char or any class that is specified). My question is in here:-
*public*class Circle where T*
{
***.....
}*
What is ment by where T*here? and*by what it*is saying*why do I need it as long as I specify the ? is it usefull for something else? Interfaces or abstract classes*for example?
And thank you in advace.
More...
View All Our Microsoft Related Feeds