public static IEdge SetGeometry(this IEdge edge, ICurve curve) { IEdge clone = edge.GetShallowClone(true) as IEdge; clone.Curve = curve.IClone(); return(clone); }