PC Review


Reply
Thread Tools Rate Thread

Automatic Public Member Variables

 
 
Jon
Guest
Posts: n/a
 
      1st Oct 2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WTL & ATL class member variables Egbert Nierop \(MVP for IIS\) Microsoft VC .NET 1 22nd Jan 2006 10:34 AM
Accessing class member variables - properties or variables? dwok Microsoft VB .NET 8 4th Mar 2005 03:54 AM
Private member variables Christoph Boget Microsoft C# .NET 2 29th Jul 2004 02:00 PM
Use of static member variables =?Utf-8?B?VG9tIFBlYXJzb24=?= Microsoft ASP .NET 5 19th Jul 2004 01:34 PM
Re: Class public shared Variables vs. Application Variables in ASP.NET avnrao Microsoft ASP .NET 0 7th May 2004 06:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:03 PM.