Click here to Skip to main content
15,895,423 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have schema file and need to generate C# class.
What are the steps to generate C# code
Posted

1 solution

I assume you are talking about an XSD Schema (please be aware that words like template, schema, form etc. have many different meanings, maybe next time put more effort in formulating your question).

So if you have a xsd no code is needed for that - just use the XSD.exe tool (Framework Tools) - for usage refer to: http://msdn.microsoft.com/en-us/library/x6c1kb0s(v=vs.110).aspx[^]
 
Share this answer
 
Comments
RhishikeshLathe 3-Jul-14 23:47pm    
Thanks for your solution...
johannesnestler 4-Jul-14 4:18am    
you are welcome :-) Btw - If you are adding a xsd in a WCF project, it will automatically generate a corresponding class structure (I think by using this tool, didn't check).
johannesnestler 4-Jul-14 4:18am    
would you mind to upvote the solution (for future googlers) -ty

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