Re: [WiX-users] Expected behavior of customActionData["nonExistentKey"]

2009-01-20 Thread vexilar
ot;optimized pattern" for your scenario was to use the "bool > TryXxx(out value)" pattern. Does DTF have that? > > -Original Message- > From: vexilar [mailto:s...@sorna.com] > Sent: Tuesday, January 20, 2009 12:19 > To: wix-users@lists.sourceforge.net >

Re: [WiX-users] Expected behavior of customActionData["nonExistentKey"]

2009-01-20 Thread Rob Mensching
he "bool TryXxx(out value)" pattern. Does DTF have that? -Original Message- From: vexilar [mailto:s...@sorna.com] Sent: Tuesday, January 20, 2009 12:19 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Expected behavior of customActionData["nonExistentKey"] I

[WiX-users] Expected behavior of customActionData["nonExistentKey"]

2009-01-20 Thread vexilar
I ended up writing a method to obtain values from CustomActionData instances: private static string getCustomActionDataValue(CustomActionData customActionData, string key) { try { return customActionData[key]; } catch