failedeventargs.cs

来自「破解的飞信源代码」· CS 代码 · 共 43 行

CS
43
字号
namespace Imps.Client.Base
{
    using System;

    public class FailedEventArgs : EventArgs
    {
        private Exception _ex;
        private string _explain;

        public FailedEventArgs(Exception exFailed)
        {
            this._ex = exFailed;
        }

        public FailedEventArgs(Exception exFailed, string explanation)
        {
            this._ex = exFailed;
            this._explain = explanation;
        }

        public string Explain
        {
            get
            {
                if (string.IsNullOrEmpty(this._explain))
                {
                    return this._ex.Message;
                }
                return this._explain;
            }
        }

        public Exception FailedException
        {
            get
            {
                return this._ex;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?