I am kind of new to c# language and looking for assistance on how the
following piece of code works.
objectDefinitions.Add((ObjectDefinition)((ArrayLis t)myGenericAnalysisWindow.comboBox2.Tag)[myGenericAnalysisWindow.comboBox2.SelectedIndex]);
- ObjectDefinition: is a self defined class
- objectDefinitions: is an instance of the ArrayList class
- myGenericAnalysisWindow is some window with a combobox
I do not understand how the casting works here and in what way squared
brackets are used.
Help is very much appreciated. Thanx.