Hi,
i ask myself if it is a good design if an extension method uses another in the same extension class.
public class ClassExtensions
{
public static bool IsNotNull<T>(this T source)
where T : class
{
return !source.IsNull();
}
public static bool IsNull<T>(this T source)
where T : class
{
return source == null;
}
}
EDIT Thanks for the answers. And sorry for the bad sample.