Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access denied on opening a file for writing Pin
Member 405249815-Oct-09 9:21
Member 405249815-Oct-09 9:21 
GeneralRe: Access denied on opening a file for writing Pin
Luc Pattyn15-Oct-09 9:26
sitebuilderLuc Pattyn15-Oct-09 9:26 
QuestionProblems with disposing rescources Pin
Kaare Tragethon15-Oct-09 7:37
Kaare Tragethon15-Oct-09 7:37 
AnswerRe: Problems with disposing rescources Pin
I Believe In GOD15-Oct-09 7:46
I Believe In GOD15-Oct-09 7:46 
GeneralRe: Problems with disposing rescources Pin
Kaare Tragethon15-Oct-09 7:49
Kaare Tragethon15-Oct-09 7:49 
AnswerRe: Problems with disposing rescources Pin
Luc Pattyn15-Oct-09 8:12
sitebuilderLuc Pattyn15-Oct-09 8:12 
GeneralRe: Problems with disposing rescources Pin
Kaare Tragethon15-Oct-09 8:34
Kaare Tragethon15-Oct-09 8:34 
QuestionVariable Get Set Pin
I Believe In GOD15-Oct-09 6:31
I Believe In GOD15-Oct-09 6:31 
Hi , have a good day

I have the Class

class MyClass
{
    private int _myvar;
    public int MyVar
    {
        get
        {
            return _myvar;
        }
        set
        {
            _myvar = value;
        }
    }

    public void ChangeMyVar(int NewValue)
    {
        // Method 1 
        _myvar = NewValue;
        // Method2 
        MyVar = NewValue;
    }
}


Which method is the standard One ?
Method 1 , or Method 2 ?


thank you

I know nothing , I know nothing ...

AnswerRe: Variable Get Set Pin
EliottA15-Oct-09 6:41
EliottA15-Oct-09 6:41 
GeneralRe: Variable Get Set Pin
I Believe In GOD15-Oct-09 7:42
I Believe In GOD15-Oct-09 7:42 
AnswerRe: Variable Get Set Pin
Henry Minute15-Oct-09 6:55
Henry Minute15-Oct-09 6:55 
GeneralRe: Variable Get Set Pin
I Believe In GOD15-Oct-09 7:40
I Believe In GOD15-Oct-09 7:40 
QuestionCheckBox limiting. [modified] Pin
Gregory Bryant15-Oct-09 5:05
Gregory Bryant15-Oct-09 5:05 
AnswerRe: ControlBox limiting. Pin
Luc Pattyn15-Oct-09 5:13
sitebuilderLuc Pattyn15-Oct-09 5:13 
GeneralRe: ControlBox limiting. Pin
Gregory Bryant15-Oct-09 5:15
Gregory Bryant15-Oct-09 5:15 
GeneralRe: ControlBox limiting. Pin
Saksida Bojan15-Oct-09 6:06
Saksida Bojan15-Oct-09 6:06 
QuestionPassing Label's Name within a Class outside of the Form [modified] Pin
yogi_bear_7915-Oct-09 4:58
yogi_bear_7915-Oct-09 4:58 
AnswerRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 5:20
sitebuilderLuc Pattyn15-Oct-09 5:20 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 5:47
yogi_bear_7915-Oct-09 5:47 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 5:55
sitebuilderLuc Pattyn15-Oct-09 5:55 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 6:23
yogi_bear_7915-Oct-09 6:23 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 6:56
sitebuilderLuc Pattyn15-Oct-09 6:56 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 7:58
yogi_bear_7915-Oct-09 7:58 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
Luc Pattyn15-Oct-09 8:24
sitebuilderLuc Pattyn15-Oct-09 8:24 
GeneralRe: Passing Label's Name within a Class outside of the Form Pin
yogi_bear_7915-Oct-09 8:44
yogi_bear_7915-Oct-09 8:44 

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.