I've just found that method in xsd dataset.
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
}
It creates 3 streams, but not using "using" clausule/closing them. Why is that? It also says, at the top of the file, that
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
So I believe I shouldn't fix it myself. Can anyone explain? :) Thanks