当前位置: 代码迷 >> ASP.NET >> public IllegalOperationException(string msg) : base(msg){}解决办法
  详细解决方案

public IllegalOperationException(string msg) : base(msg){}解决办法

热度:5936   发布时间:2013-02-25 00:00:00.0
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
  相关解决方案