internal static void AssertHasInterface(Type type, Type iType) { #if DEBUG Debug.Assert(iType.GetTypeInfo().IsInterface); foreach (Type iFace in type.GetInterfaces()) { if (iFace == iType) return; } Debug.Assert(false); #endif }