Automatic Public Member Variables

J

Jon

Hello all,

I recently posted a question about a tool that would create the public
member variables for a selected set of private member variables - when
there's 10 - 15 privates, it can be very tedious!. I found a number of
options, but all a little costly, so I developed my own.

For example,

if your code has the below private members:

private int _id;
private string name;
private DateTime _date;

simply highlight them all, click the AddIn and it would write the
below public members automatically:

public int Id
{
get { return _id; }
set { _id = value; }
}

public string Name
{
get { return name; }
set { name = value; }
}

public DateTime Date
{
get { return _date; }
set { _date = value; }
}

The AddIn is very lightweight and relatively simple. If you would like
a copy of the dll, please feel free to mail me, jonmyates [then the at
sign] gmail.com.

Yours,

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top