I am trying to create a shapefile from an InMemoryFeatureLayer. However I am getting a weird design time error.
Here is my code:
Collection<FeatureSourceColumn> pColumns = propertyLayer.QueryTools.GetColumns();
ShapeFileFeatureSource.CreateShapeFile(ShapeFileType.Polygon, filepath, pColumns, System.Text.Encoding.UTF8);
//also tried
ShapeFileFeatureLayer.CreateShapeFile(ShapeFileType.Polygon, filepath, pColumns, System.Text.Encoding.UTF8);
Both of these objects have intellisense that allows me to select "CreateShapeFile", yet when I am done I get the error "unknown method".
Any ideas?