using System; namespace SK.Framework { public static class ClassExtension { public static bool IsNull(this T self) where T : class { return null == self; } public static bool Execute(this T self, Action action) where T : class { if(null != self) { action(self); return true; } return false; } } }