public static IGeometry ReadGeometryFromXml(string filePath) { IXMLSerializer serializer = new XMLSerializerClass(); IXMLReader reader = new XMLReaderClass(); IXMLStream stream = new XMLStreamClass(); stream.LoadFromFile(filePath); reader.ReadFrom((IStream)stream); return((IGeometry)serializer.ReadObject(reader, null, null)); }
private static object ReadGeometryFromXML(string filePath) { IXMLSerializer serializer = new XMLSerializerClass(); IXMLReader reader = new XMLReaderClass(); IXMLStream stream = new XMLStreamClass(); stream.LoadFromFile(filePath); reader.ReadFrom((IStream)stream); return(serializer.ReadObject(reader, null, null)); }