 | ILGeneratorHacksGetNextLocalVarIndex Method |
Efficiently returns the next variable index, hopefully without unnecessary allocations.
Namespace:
SphinxConnector.FluentApi.Helpers
Assembly:
SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntaxpublic static int GetNextLocalVarIndex(
this ILGenerator il,
Type t
)
<ExtensionAttribute>
Public Shared Function GetNextLocalVarIndex (
il As ILGenerator,
t As Type
) As Integer
Parameters
- il
- Type: System.Reflection.EmitILGenerator
[Missing <param name="il"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ILGeneratorHacks.GetNextLocalVarIndex(System.Reflection.Emit.ILGenerator,System.Type)"]
- t
- Type: SystemType
[Missing <param name="t"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ILGeneratorHacks.GetNextLocalVarIndex(System.Reflection.Emit.ILGenerator,System.Type)"]
Return Value
Type:
Int32[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.ILGeneratorHacks.GetNextLocalVarIndex(System.Reflection.Emit.ILGenerator,System.Type)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ILGenerator. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also