using System;
public class MyClass {
public virtual void MethodA<T>(T arg)
where T : new() {
}
}
public class YClass : MyClass {
public override void MethodA<T>(T arg) {
T obj = new T();
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok