Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive when serializing with XmlSerializer #68

Open
JarLob opened this issue Jul 17, 2018 · 0 comments
Open

False positive when serializing with XmlSerializer #68

JarLob opened this issue Jul 17, 2018 · 0 comments

Comments

@JarLob
Copy link
Contributor

JarLob commented Jul 17, 2018

There should be no warning because it serializes.

        static void Serialize(Type type, object data)
        {
            XmlSerializer xs = new XmlSerializer(type);
            StreamWriter writer = File.CreateText("");
            xs.Serialize(writer, data);
            writer.Flush();
            writer.Close();     
        }
@JarLob JarLob changed the title False positive when Serializing with XmlSerializer False positive when serializing with XmlSerializer Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant