using System; namespace Admin.Core { public static class GuidExtensions { /// /// 判断Guid是否为空 /// /// /// public static bool IsNull(this Guid s) { return s == Guid.Empty; } /// /// 判断Guid是否不为空 /// /// /// public static bool NotNull(this Guid s) { return s != Guid.Empty; } } }