Confuser.Core/DnlibUtils.cs
/// <summary>
///     Finds all definitions of interest in a type.
/// </summary>
/// <param name="typeDef">The type.</param>
/// <returns>A collection of all required definitions</returns>
// Token: 0x0600014A RID: 330 RVA: 0x0000B748 File Offset: 0x00009948
Finds all definitions of interest in a type.
Finds all definitions of interest in a type .
public static IEnumerable<IDnlibDef> FindDefinitions(this TypeDef typeDef)
		{
			yield return typeDef;
			foreach (TypeDef current in typeDef.NestedTypes)
			{
				yield return current;
			}
			foreach (MethodDef current2 in typeDef.Methods)
			{
				yield return current2;
			}
			foreach (FieldDef current3 in typeDef.Fields)
			{
				yield return current3;
			}
			foreach (PropertyDef current4 in typeDef.Properties)
			{
				yield return current4;
			}
			foreach (EventDef current5 in typeDef.Events)
			{
				yield return current5;
			}
			yield break;
		}
public static IEnumerable < IDnlibDef > FindDefinitions ( this TypeDef typeDef ) { yield return typeDef ; foreach ( TypeDef current in typeDef . NestedTypes ) { yield return current ; } foreach ( MethodDef current2 in typeDef . Methods ) { yield return current2 ; } foreach ( FieldDef current3 in typeDef . Fields ) { yield return current3 ; } foreach ( PropertyDef current4 in typeDef . Properties ) { yield return current4 ; } foreach ( EventDef current5 in typeDef . Events ) { yield return current5 ; } yield break ; }
Finds all definitions of interest in a type.
Finds all definitions of interest in a type .
A collection of all required definitions
A collection of all required definitions
TypeDef
this
typeDef
None