Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A C# Class Generator tool..
Message
From
25/07/2008 22:56:12
 
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
A C# Class Generator tool..
Miscellaneous
Thread ID:
01334196
Message ID:
01334196
Views:
53
Here's a cool tool I found for creating a code-generated class in C#.

http://www.csharpfriends.com/demos/csharp_class_generator.aspx

Anybody know of better ones?


Here's a sample output. There are a few options you can choose to change a few things:
using System;

// Generated by http://www.csharpfriends.com
namespace nsTestThis
{
	public class TestClass
	{
		// private members
		string name;
		int count;
		double value;
		bool ready;
		double price;


		// empty constructor
		public TestClass ()
		{
		}


		// full constructor
		public TestClass (string Name, int Count, double Value, bool Ready, double Price)
		{
			this.name = Name;
			this.count = Count;
			this.value = Value;
			this.ready = Ready;
			this.price = Price;
		}

		// public accessors
		public string Name
		{
			get { return name;}
			set { name = value; }
		}
		public int Count
		{
			get { return count;}
			set { count = value; }
		}
		public double Value
		{
			get { return value;}
			set { value = value; }
		}
		public bool Ready
		{
			get { return ready;}
			set { ready = value; }
		}
		public double Price
		{
			get { return price;}
			set { price = value; }
		}


	}
}
Next
Reply
Map
View

Click here to load this message in the networking platform