huzige0265

导航

 

string strError=string.Empty;

Func<string,string,string> AppendLine=(source,append) =>source+(string.IsNullOrEmpty(source)) ? "":"\n") + append;

Action<bool,string> CheckControl =(condition,errotText)=>

{

 if (condition) strError=AppendLine(strError,errotText);

};

posted on 2018-12-27 08:57  huzige0265  阅读(61)  评论(0编辑  收藏  举报