public class BaseException<T> : Exception where T : class
{
public BaseException() : base() { }
public BaseException(string message) : base(message) { }
}
public class NameNullOrEmptyException
{
}
so i am thinking something like that
throw new BaseException<NameNullOrEmptyException > but the problem with that the thrown exception is BaseException<NameNullOrEmptyException> and I would like to have it NameNullOrEmptyException