日期:2014-05-17  浏览次数:20426 次

public IllegalOperationException(string msg) : base(msg){}

public IllegalOperationException(string msg) : base(msg){}
这句话的意思,是不是继承基类的构造方法?



C# code

    /// <summary>
    /// 非法操作异常
    /// </summary>
    public class IllegalOperationException : Exception
    {
        public IllegalOperationException(string msg) : base(msg){}
    }




------解决方案--------------------
从派生类中访问基类的成员:
http://msdn.microsoft.com/zh-cn/library/hfw7t1ce.aspx