Confuser.Core/DnlibUtils.cs
/// <summary>
///     Determines whether the specified type implements the specified interface.
/// </summary>
/// <param name="type">The type.</param>
/// <param name="fullName">The full name of the type of interface.</param>
/// <returns><c>true</c> if the specified type implements the interface; otherwise, <c>false</c>.</returns>
// Token: 0x06000151 RID: 337 RVA: 0x0000B914 File Offset: 0x00009B14
Determines whether the specified type implements the specified interface.
Determines whether the specified type implements the specified interface .
public static bool Implements(this TypeDef type, string fullName)
		{
			while (true)
			{
				foreach (InterfaceImpl iface in type.Interfaces)
				{
					if (iface.Interface.ReflectionFullName == fullName)
					{
						return true;
					}
				}
				if (type.BaseType == null)
				{
					break;
				}
				type = type.BaseType.ResolveTypeDefThrow();
				if (type == null)
				{
					goto Block_2;
				}
			}
			return false;
			Block_2:
			throw new UnreachableException();
		}
public static bool Implements ( this TypeDef type , string fullName ) { while ( true ) { foreach ( InterfaceImpl iface in type . Interfaces ) { if ( iface . Interface . ReflectionFullName == fullName ) { return true ; } } if ( type . BaseType == null ) { break ; } type = type . BaseType . ResolveTypeDefThrow ( ) ; if ( type == null ) { goto Block_2 ; } } return false ; Block_2 : throw new UnreachableException ( ) ; }
Determines whether the specified type implements the specified interface.
Determines whether the specified type implements the specified interface .
None
TypeDef
this
fullName
string
The full name of the type of interface.
The full name of the type of interface .
type
None