Ancestry.QueryProcessor.Compile.ReflectionUtility.IsRepository C# (CSharp) Method

IsRepository() public static method

public static IsRepository ( System type ) : bool
type System
return bool
        public static bool IsRepository(System.Type type)
        {
            return type != null && type.IsGenericType && typeof(Storage.IRepository<>).MakeGenericType(type.GenericTypeArguments[0]).IsAssignableFrom(type);
        }