(XmlDocument XmlDoc, string TargetFile)
| 139 | } |
| 140 | |
| 141 | public static void WriteFSTGXmlType(XmlDocument XmlDoc, string TargetFile) |
| 142 | { |
| 143 | FileStream tFile = new FileStream(TargetFile, FileMode.Create, FileAccess.Write, FileShare.Read); |
| 144 | |
| 145 | try |
| 146 | { |
| 147 | XmlWriterSettings tSetting = new XmlWriterSettings(); |
| 148 | tSetting.CloseOutput = false; |
| 149 | tSetting.Encoding = Encoding.UTF8; |
| 150 | tSetting.Indent = true; |
| 151 | tSetting.IndentChars = " "; |
| 152 | tSetting.NewLineOnAttributes = false; |
| 153 | tSetting.OmitXmlDeclaration = true; |
| 154 | |
| 155 | XmlWriter tWritter = XmlWriter.Create(tFile, tSetting); |
| 156 | |
| 157 | XmlDoc.Save(tWritter); |
| 158 | } |
| 159 | catch |
| 160 | { |
| 161 | tFile.Close(); |
| 162 | |
| 163 | throw; |
| 164 | } |
| 165 | |
| 166 | tFile.Close(); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | public class PointFConverter : TypeConverter |
no outgoing calls
no test coverage detected