private static Graphic CloneGraphic(Graphic g) { if(g == null) return null; Graphic clone = new Graphic() { Geometry = g.Geometry }; foreach(var key in g.Attributes.Keys) clone.Attributes[key] = g.Attributes[key]; //or set to null if you want all values to be null. You might also want to skip ObjectID return clone; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.