var newGraphic = new Graphic { Symbol = oldGraphic.Symbol, Geometry = Geometry.Clone(oldGraphic.Geometry), Attributes = oldGraphic.Attributes };
Error: Property or indexer 'Attributes' cannot be assigned to -- it is read only
Graphic g= new Graphic()
{
Symbol = selectedGraphic.Symbol,
Geometry = selectedGraphic.Geometry, //I did not find clone so is this right
}
foreach (var kvp in selectedGraphic.Attributes)
{
g.Attributes.Add(kvp);
}