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