public void TestCreateExportPoly()
        {
            var export = new GeoJsonExport();

            //open point feature class and record set
            _fc = OpenFeatureClass(_fgdb, _polyFeatureClassName);
            IRecordSet2 recordSet = export.ConvertToRecordset(_fc);

            export.CreateExport(recordSet, "Shape");

            WriteOutputToFile(export, @"C:\Git\EsriToGeoJson\LeafletTests\poly.js");
        }
        private static void WriteOutputToFile(GeoJsonExport export, string outputFile)
        {
            // create a writer and open the file
            TextWriter tw = new StreamWriter(outputFile);

            // write a line of text to the file
            tw.WriteLine(export.GeoJson);

            // close the stream
            tw.Close();
        }