classWrapper
{
publicstaticintCounter{ get; privateset;}
staticWrapper()
{
Counter=0;
}
publicTGet<T>()
{
++Counter;
returndefault(T);
}
}
classWrapper<T>
{
publicstaticintCounter{ get; privateset;}
staticWrapper()
{
Counter=0;
}
publicTGet()
{
++Counter;returndefault(T);
}
} }
“The first uses generic methods while the second is a generic class” is true, but is not what I’m looking for here …