Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi there ,
i have two class like following :
C#
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?
thanks

What I have tried:

i don't know how to use xsd2code.
Posted
Updated 5-May-16 0:31am
Comments
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.

Example:

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