AnsweredAssumed Answered

An item with the same key has already been added

Question asked by kireandreev on Aug 6, 2019
Latest reply on Aug 6, 2019 by kireandreev



I am using 100.5 version of Esri RunTime Sdk for WPF/C#.

I would like to add Graphic objects into GraphicsOverlay, but i don't like to initialize Graphic class into loop.I initialize  Graphic class outside loop and appear next error: 


An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Esri.ArcGISRuntime.Internal.AttributeDictionary.Add(String key, Object value)


How to solved this problem, because i have a lot of Graphics and i like to work my application fast.


Best regard.