forked from cgvr/DeltaVR
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			549 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			549 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using FishNet.CodeGenerating.Helping.Extension;
 | 
						|
using MonoFN.Cecil.Cil;
 | 
						|
 | 
						|
namespace FishNet.CodeGenerating.Extension
 | 
						|
{
 | 
						|
 | 
						|
 | 
						|
    internal static class ILProcessorExtensions
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// Creates a variable type within the body and returns it's VariableDef.
 | 
						|
        /// </summary>
 | 
						|
        internal static VariableDefinition CreateVariable(this ILProcessor processor, CodegenSession session, System.Type variableType)
 | 
						|
        {
 | 
						|
            return processor.Body.Method.CreateVariable(session, variableType);
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
 | 
						|
} |