Visual Studio 2010 is Great IDE and I am exploring everyday a new things. Recently I was working with it and I have found a great features called Generate from usage. This feature is allow us to create a class from the generation from usage. Let’s take a sample example for that. Let’s Create a simple example where we will use a product class which is not there in project. Then from generate from usage feature we will create a product class. Here is code where product class does not exist in my console application project.
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Product objProduct = new Product();
}
}
}
That’s is it will create a new class there in your solution like this.
So with this feature you will create as per you usage in class. Hope this will help you.Happy programming..
0 comments:
Post a Comment
Your feedback is very important to me. Please provide your feedback via putting comments.