Click here to Skip to main content
15,793,609 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi there ,
i have two class like following :
public class WebServiceLog
        public string Name { get; set; }
        public int ID { get; set; }

    public class RoleEditLog
        public List<WebServiceLog> OldMethods { get; set; }
        public List<WebServiceLog> NewMethods { get; set; }
        public DateTime EditTime { get; set; }

how can i create .NET classes according aforementioned classes
by XSD2Code Custom generator?

What I have tried:

i don't know how to use xsd2code.
Updated 5-May-16 1:31am
Kornfeld Eliyahu Peter 4-May-16 7:22am    
You can use xsd.exe...
Richard Deeming 4-May-16 13:52pm    
Your question is confusing - you ask how to create C# classes from XSD, but your code sample is two C# classes.

Did you mean to ask how to create an XSD schema to represent your C# classes?
aliwpf 5-May-16 2:57am    
exactly. can you help me?

1 solution

All you have to do is compiling your assembly and run XSD.exe with the path to your assembly as argument. XSD.exe /? has a list of all arguments as well.


XSD.exe C:\Dev\Project1\Bin\Debug\library.dll
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900