10 2013 档案

摘要:public static class ExceptionExtensions { public static IEnumerable GetAllExceptions(this Exception ex) { Exception currentEx = ex; yield return currentEx; while (currentEx.InnerException != null) { currentEx = currentEx.InnerException; ... 阅读全文
posted @ 2013-10-28 10:10 chunchill 阅读(219) 评论(0) 推荐(0)
摘要:class Digit{ public Digit(double d) { val = d; } public double val; // ...other members // User-defined conversion from Digit to double public static implicit operator double(Digit d) { return d.val; } // User-defined conversion from double to Digit public stati... 阅读全文
posted @ 2013-10-15 16:05 chunchill 阅读(376) 评论(0) 推荐(0)