FimExplorer/src/UI.WPF/_Utils/TypeExtensions.cs

17 lines
349 B
C#

using System;
namespace Predica.FimExplorer.UI.WPF
{
public static class TypeExtensions
{
public static bool Is<TOther>(this Type @this)
{
return @this == (typeof(TOther));
}
public static bool IsNot<TOther>(this Type @this)
{
return !@this.Is<TOther>();
}
}
}