Posts Tagged ‘The property ‘Collection’ of ‘AddToCollection’ is not initialized’

If your Activities OutArgument is something complex,say List<string> for eg,then you need to initialize it first & If you don’t do so,you will get an exception The property ‘Collection’ of ‘AddToCollection<String>’ is not initialized.

For assigning default value to the variable,you can use the assign activity & initialize it to New List(Of String).Though your language is C#,if you look at,you will understand that the initialization to variable is a VB expression ! It’s not a big deal to write an expression in VB ,still I wonder why is it so when the project is C# :)If you know the answer,please share  that in the comments section below 🙂

Advertisements