This took a little time away from me so I thought I'd blog about it. I have an SSIS C# script and was simply looking to use 3 variables. Here is how I pull the variables from the package:
As you can see, the VariableDispenser seems to put the variables in alphabetical order, not the order they are locked. Keep this in mind when you are using the Dts.VariableDispenser as a method to interact with package variables.