Mono.Cecil.Cil.MethodBody.ThisParameterFor C# (CSharp) Method

ThisParameterFor() static private method

static private ThisParameterFor ( MethodDefinition method ) : ParameterDefinition
method MethodDefinition
return ParameterDefinition
		static ParameterDefinition ThisParameterFor (MethodDefinition method)
		{
			var declaring_type = method.DeclaringType;
			var type = declaring_type.IsValueType || declaring_type.IsPrimitive
				? new PointerType (declaring_type)
				: declaring_type as TypeReference;

			return new ParameterDefinition (type, method);
		}