private void Write(GeneratedEdmModelLoadModelFromStringMethod method) { WriteSignature(method); using (_builder.IndentBraced) { _("global::System.Xml.XmlReader reader = CreateXmlReader(Edmx);"); _("try"); using (_builder.IndentBraced) { _("return global::Microsoft.OData.Edm.Csdl.EdmxReader.Parse(reader);"); } _("finally"); using (_builder.IndentBraced) { _("((global::System.IDisposable)(reader)).Dispose();"); } } }