I have two auto-generated classes generated by xsd tool.
The classes have same name and similar member variables.
But many of the members are different.
I am storing these classes in different folders. But there is still a conflict - like this
The type 'Response' already contains a definition for 'Field1'
How do I store these classes to avoid conflict??
I don't want to change anything in the classes as they are auto-generated and changing them might cause XML parsing errors
The classes have structure like below:-
public partial class Response {
public string Field1;
public string Field2;
public string Field3;
}
public partial class Response {
public string Field1;
public string Field2;
public string Field4;
}
The classes are stored as follows
MyProject->Classes->Folder1->Class1
MyProject->Classes->Folder2->Class2