private bool IsSpec(Type t) { foreach (var i in t.GetInterfaces()) { if (i.FullName == typeof(ISpec).FullName) return true; } return false; }