Microsoft.CSharp.RuntimeBinder.Semantics.ConstValFactory.GetInt C# (CSharp) Method

GetInt() public static method

public static GetInt ( int value ) : CONSTVAL
value int
return CONSTVAL
        public static CONSTVAL GetInt(int value)
        {
            CONSTVAL result = new CONSTVAL();
            result.iVal = value;
            return result;
        }

Usage Example

 public EXPRCONSTANT CreateIntegerConstant(int x)
 {
     return(CreateConstant(GetTypes().GetReqPredefAgg(PredefinedType.PT_INT).getThisType(), ConstValFactory.GetInt(x)));
 }