public CreateIntegerConstant ( int x ) : Microsoft.CSharp.RuntimeBinder.Semantics.EXPRCONSTANT | ||
x | int | |
return | Microsoft.CSharp.RuntimeBinder.Semantics.EXPRCONSTANT |
private static ExprArrayInit GenerateParamsArray(Expr args, PredefinedType pt) { int parameterCount = ExpressionIterator.Count(args); AggregateType paramsArrayElementType = SymbolLoader.GetPredefindType(pt); ArrayType paramsArrayType = TypeManager.GetArray(paramsArrayElementType, 1, true); ExprConstant paramsArrayArg = ExprFactory.CreateIntegerConstant(parameterCount); return(ExprFactory.CreateArrayInit(paramsArrayType, args, paramsArrayArg, new int[] { parameterCount })); }