public static bool IsEqual(this GeometryTypeShape geometryTypeShape,
                            esriGeometryType esriGeometryType)
 {
     return((int)geometryTypeShape.ShapeType == (int)esriGeometryType);
 }
        public static esriGeometryType ToEsriGeometryType(this GeometryTypeShape geometryTypeShape)
        {
            int code = (int)geometryTypeShape.ShapeType;

            return((esriGeometryType)code);
        }