tags:

views:

163

answers:

2

I am running StyleCop (which btw I completely recommend if you want to deliver high quality code)...

I have this line

[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable=false)]

update tried this too

[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]

StyleCop is reporting an error

Warning 2 SA1003: The spacing around the symbol '=' is invalid.

If this is invalid, what is valid?

+2  A: 

Come on y'all. ;) Matt had it in the comment.

[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
280Z28
Amazing how sometimes you overlook the details :)
JL
+2  A: 

Make life easy on yourself and just CTRL+K+D the file in VS.

Troy Hunt