When I debug on a graphic object in my .Net project, I can see the values of the graphic in VS Watch window. However, if I type
gLayer.Graphics[0].Attributes.Values[0].ToSring()
in the Immediate Window, such an error displays:
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.ICollection<object>'
How to retrieve the values of a graphic object using .Net code? Thanks.
Problem solved by converting it to an array, like that:
gLayer.Graphics[0].Attributes.Values.ToArray()
Thanks for your review.