namespace Electric.Core { /// <summary> /// 自定义检查类 /// </summary> public static class Check { public static T NotNull<T>(T value, string parameterName) { if (value == null) { throw new ArgumentNullException(parameterName); } return value; } } }