Confuser.Core/DnlibUtils.cs
/// <summary>
///     Find the basic type reference.
/// </summary>
/// <param name="typeSig">The type signature to get the basic type.</param>
/// <returns>A <see cref="T:dnlib.DotNet.ITypeDefOrRef" /> instance, or null if the typeSig cannot be resolved to basic type.</returns>
// Token: 0x06000154 RID: 340 RVA: 0x0000B9F4 File Offset: 0x00009BF4
Find the basic type reference.
Find the basic type reference .
public static ITypeDefOrRef ToBasicTypeDefOrRef(this TypeSig typeSig)
		{
			while (typeSig.Next != null)
			{
				typeSig = typeSig.Next;
			}
			if (typeSig is GenericInstSig)
			{
				return ((GenericInstSig)typeSig).GenericType.TypeDefOrRef;
			}
			if (typeSig is TypeDefOrRefSig)
			{
				return ((TypeDefOrRefSig)typeSig).TypeDefOrRef;
			}
			return null;
		}
public static ITypeDefOrRef ToBasicTypeDefOrRef ( this TypeSig typeSig ) { while ( typeSig . Next != null ) { typeSig = typeSig . Next ; } if ( typeSig is GenericInstSig ) { return ( ( GenericInstSig ) typeSig ) . GenericType . TypeDefOrRef ; } if ( typeSig is TypeDefOrRefSig ) { return ( ( TypeDefOrRefSig ) typeSig ) . TypeDefOrRef ; } return null ; }
Find the basic type reference.
Find the basic type reference .
A
Token: 0x06000154 RID: 340 RVA: 0x0000B9F4 File Offset: 0x00009BF4
instance, or null if the typeSig cannot be resolved to basic type.
A Token : 0x06000154 RID : 340 RVA : 0x0000B9F4 File Offset : 0x00009BF4 instance or null if the typeSig cannot be resolved to basic type .
TypeSig
this
typeSig
The type signature to get the basic type.
The type signature to get the basic type .