To my surprise i’m able to do this:
public abstract class BaseComponent
{
protected GameObject GameObject;
internal BaseComponent(GameObject gameObject)
{
GameObject = gameObject;
}
}
public abstract class BaseComponent<TComponent, TManager> : BaseComponent
where ...
{
}
- Is naming my 2 classes the same bad practice?
- Is there a standard naming convention in this case?
No.
The same name is fine. cf.
IEnumerableandIEnumerable<T>.Why is it a surprise? It’s intuitive, and is standard in the framework.