namespace Brutal; /// /// Interface for a type that can be null /// public interface INullable { /// /// Returns true if the instance is null /// public bool IsNull(); } /// /// Extensions for INullable /// public static class NullableExtensions { /// /// Returns true if the instance is not null /// public static bool IsNotNull(this T nullable) where T : INullable { return !nullable.IsNull(); } }