// Used to access variables in an SSIS Script Task


string myVar;
myVar = Dts.Variables["MyStringVariable"].Value.ToString();

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/vrsggaTIPic/12641