一个错误基类:
[Serializable]
public abstract class ErrorBase : Exception
{
    
private string psID = string.Empty;

    
public ErrorBase()
    {
    }

    
public ErrorBase(string aoMessage) : base(aoMessage)
    {
    }

    
protected ErrorBase(SerializationInfo info, StreamingContext context) : base(info, context)
    {
    }

    
public ErrorBase(string aoMessage, Exception aoInnerException) : base(aoMessage, aoInnerException)
    {
    }

    
public string ID
    {
        
get
        {
            
return this.psID;
        }
        
protected set
        {
            
this.psID = value;
        }
    }
}

 
    大家看看里面有多少问题,还是基类,汗水。。。
    至少我看了这段代码,就超级想辞职。。。

相关文章:

  • 2021-08-21
  • 2021-10-08
  • 2021-11-30
  • 2021-08-04
  • 2021-11-17
  • 2021-04-29
  • 2021-06-09
  • 2021-05-15
猜你喜欢
  • 2021-07-13
  • 2021-06-07
  • 2021-07-23
  • 2022-12-23
  • 2021-06-23
  • 2021-04-26
  • 2022-01-09
相关资源
相似解决方案