System.Xml.Serialization.CodeGenerator.AssertHasInterface C# (CSharp) Method

AssertHasInterface() static private method

static private AssertHasInterface ( Type type, Type iType ) : void
type System.Type
iType System.Type
return void
        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
        }