Will the following code compile ?
class testgeneric<type>
{
type _i;
public type I
{
get { return _i; }
set { _i = value; }
}
}
class testgeneric
{
int _i;
public int I
{
get { return _i; }
set { _i = value; }
}
}
Ans: Yes
Will the following code compile ?
class testgeneric<type>
{
type _i;
public type I
{
get { return _i; }
set { _i = value; }
}
}
class testgeneric
{
int _i;
public int I
{
get { return _i; }
set { _i = value; }
}
}
Ans: Yes