日期:2014-05-17 浏览次数:20825 次
public class ExceptionUndefinedEnumConditions : Exception
{
public ExceptionUndefinedEnumConditions(Type type)
{
if (type != null)
{
base.Message = type.ToString();
}
else
{
this.Message = "Type Undefined";
}
}
}
public class ExceptionUndefinedEnumConditions : Exception
{
public new string Message
{
get;
set;
}
public ExceptionUndefinedEnumConditions(Type type)
{
if (type != null)
{
this.Message = type.ToString();
}
else
{
this.Message = "Type Undefined";
}
}
}