G
garyusenet
TaggedString val =
(TaggedString)backgroundComboBox.SelectedItem;
Bitmap bmp = (Bitmap)val.Tag;
Now Taggedstring is a class, and I can gather that
TaggedString val = ....
is defining a variable of type reference to store an instance of
TaggedString.
What i don't understand is what the bracket before a variable means...
like
(TaggedString)background.ComboBox.SelectedItem;
can someone explain...
thanks,
Gary.
(TaggedString)backgroundComboBox.SelectedItem;
Bitmap bmp = (Bitmap)val.Tag;
Now Taggedstring is a class, and I can gather that
TaggedString val = ....
is defining a variable of type reference to store an instance of
TaggedString.
What i don't understand is what the bracket before a variable means...
like
(TaggedString)background.ComboBox.SelectedItem;
can someone explain...
thanks,
Gary.