Files
mono/mcs/class/System.ServiceModel/Mono.CodeGeneration/CodeArgument.cs
T
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00

39 lines
611 B
C#

// created on 28/08/2004 at 17:07
using System;
using System.Reflection;
using System.Reflection.Emit;
namespace Mono.CodeGeneration
{
public class CodeArgument: CodeExpression
{
int argument;
public CodeArgument (int arg, Type type)
{
argument = arg;
}
public int Argument
{
get { return argument; }
}
public override void Generate (ILGenerator gen)
{
gen.Emit (OpCodes.Ldloc, var.LocalBuilder);
}
public override void PrintCode (CodeWriter cp)
{
cp.Write ("arg" + argument);
}
public override Type GetResultType ()
{
return var.Type;
}
}
}