// Setting the integer value to be written uint value = 123; // Writing the value to the invocation argument invocation.WriteUint("argName", value);
// Getting the value from some input parameter string inputParam = "456"; uint value = uint.Parse(inputParam); // Writing the value to the invocation argument invocation.WriteUint("argName", value);In this example, we first convert a string input parameter to a uint value, and then write it to an argument named "argName" of an invocation object 'invocation'.