Remove control point of surface in C#

I want to remove some useless control points on the surface through the code 。
like rhino command : _RemoveControlPoint
112333

I tried many times, without success.
Anyone has a better idea?

Thanks.

Moved to Developer category