Maybe I have it wrong, but I saw something like WebMethod:
[return:(XmlElement("Class2"),IsNullable = false)] public Class2 MEthod1() { }
At first I saw a version of vb, and I used a converter to convert it to C #. I've never seen this before. This is in the asmx vb 6 file.
source share