All Questions
2
questions
3
votes
0
answers
27
views
Inherited data member in generic class not visible in derived class unless prefixed with this-> [duplicate]
I have encountered the following problem with someone else's code which presumably was compiling at some point. A base class is a generic container of a data member of type T. This data member is ...
1
vote
4
answers
420
views
Expose constructor only to base class, possible?
public class Base<S>
{
public static Derived<S, T> Create<T>()
{
return new Derived<S, T>(); //if not public, I wont get it here.
}
}
public class Derived&...