I am trying to load an XML file in an SSIS Script task.
This works:
var fullpath = "E:/perforce_ws/EnterpriseTrunk/SSIS/Inbox/RCT_Import_1.xml";
var xml = XDocument.Load(fullpath);
But this doesn't:
var fullpath = Dts.Variables["XMLFullPath"].Value.ToString;
var xml = XDocument.Load(fullpath);
The error being returned is
"Cannot assign method group to an implicitly-typed variable".
Where have I gone wrong?