Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generating menu items dynamically from Collection? Pin
Luc Pattyn19-Jan-07 14:32
sitebuilderLuc Pattyn19-Jan-07 14:32 
Questionhow to restrict combo box only to list values? Pin
michal.kreslik19-Jan-07 12:47
michal.kreslik19-Jan-07 12:47 
AnswerRe: how to restrict combo box only to list values? Pin
quiteSmart19-Jan-07 12:52
quiteSmart19-Jan-07 12:52 
GeneralRe: how to restrict combo box only to list values? Pin
michal.kreslik19-Jan-07 12:55
michal.kreslik19-Jan-07 12:55 
GeneralRe: how to restrict combo box only to list values? Pin
quiteSmart19-Jan-07 13:03
quiteSmart19-Jan-07 13:03 
QuestionMaking a class-write-only member? Pin
Lord Kixdemp19-Jan-07 12:41
Lord Kixdemp19-Jan-07 12:41 
AnswerRe: Making a class-write-only member? Pin
Luc Pattyn19-Jan-07 12:56
sitebuilderLuc Pattyn19-Jan-07 12:56 
AnswerRe: Making a class-write-only member? Pin
Christian Graus19-Jan-07 13:08
protectorChristian Graus19-Jan-07 13:08 
protected int _myAge;

public int MyAge
{
    get { return _myAge; }
    private set { _myAge = value; }
}

The private setter is not needed ( and only works in .NET 2.0 ). but it does allow you to use the same name internally, if you wanted to for some reason.  You could also make the var private and the property protected, if you wanted to.  protected is needed only so that the variable is visible to derived classes, otherwise, private is fine.


Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

GeneralRe: Making a class-write-only member? Pin
Lord Kixdemp19-Jan-07 14:53
Lord Kixdemp19-Jan-07 14:53 
QuestionHow to Read patterns from a pool of numbers Pin
velkropie19-Jan-07 12:01
velkropie19-Jan-07 12:01 
AnswerRe: How to Read patterns from a pool of numbers Pin
Ed.Poore19-Jan-07 12:37
Ed.Poore19-Jan-07 12:37 
GeneralRe: How to Read patterns from a pool of numbers Pin
velkropie20-Jan-07 6:03
velkropie20-Jan-07 6:03 
GeneralRe: How to Read patterns from a pool of numbers Pin
Ed.Poore20-Jan-07 7:27
Ed.Poore20-Jan-07 7:27 
AnswerRe: How to Read patterns from a pool of numbers Pin
Mircea Puiu19-Jan-07 22:48
Mircea Puiu19-Jan-07 22:48 
QuestionHow to set the desktop wallpaper Pin
CodeItWell19-Jan-07 11:09
CodeItWell19-Jan-07 11:09 
AnswerRe: How to set the desktop wallpaper Pin
Ed.Poore19-Jan-07 12:34
Ed.Poore19-Jan-07 12:34 
GeneralRe: How to set the desktop wallpaper Pin
prolibertine19-Jan-07 15:59
prolibertine19-Jan-07 15:59 
GeneralRe: How to set the desktop wallpaper Pin
Rob Graham19-Jan-07 16:24
Rob Graham19-Jan-07 16:24 
GeneralRe: How to set the desktop wallpaper Pin
Ed.Poore19-Jan-07 23:30
Ed.Poore19-Jan-07 23:30 
GeneralRe: How to set the desktop wallpaper Pin
CodeItWell20-Jan-07 0:04
CodeItWell20-Jan-07 0:04 
GeneralRe: How to set the desktop wallpaper Pin
Ed.Poore20-Jan-07 0:09
Ed.Poore20-Jan-07 0:09 
QuestionFile Name Pin
-Yoyosh-19-Jan-07 10:30
-Yoyosh-19-Jan-07 10:30 
AnswerRe: File Name Pin
Mircea Puiu19-Jan-07 23:05
Mircea Puiu19-Jan-07 23:05 
GeneralRe: File Name Pin
-Yoyosh-20-Jan-07 8:13
-Yoyosh-20-Jan-07 8:13 
QuestionGetting TableName only from Northwind Database.......... Can someone help... Pin
nature027619-Jan-07 10:13
nature027619-Jan-07 10:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.