Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
GeneralRe: AD-User must change password at next logon Pin
Dave Kreskowiak28-Jun-10 7:35
mveDave Kreskowiak28-Jun-10 7:35 
GeneralRe: AD-User must change password at next logon Pin
noamtzu0028-Jun-10 8:02
noamtzu0028-Jun-10 8:02 
GeneralRe: AD-User must change password at next logon Pin
Dave Kreskowiak28-Jun-10 10:51
mveDave Kreskowiak28-Jun-10 10:51 
GeneralRe: AD-User must change password at next logon Pin
freakyit29-Jun-10 0:16
freakyit29-Jun-10 0:16 
QuestionNewbie Inheritance Question Pin
Rapier-50328-Jun-10 3:18
Rapier-50328-Jun-10 3:18 
AnswerRe: Newbie Inheritance Question Pin
OriginalGriff28-Jun-10 3:42
mveOriginalGriff28-Jun-10 3:42 
GeneralRe: Newbie Inheritance Question Pin
Rapier-50328-Jun-10 4:54
Rapier-50328-Jun-10 4:54 
GeneralRe: Newbie Inheritance Question Pin
OriginalGriff28-Jun-10 6:05
mveOriginalGriff28-Jun-10 6:05 
It does sound like you are trying to approach this the wrong way. If you need a different value, but the same processing, then why do you not use A.x but change it's value in the B constructor instead of trying to mask the variable:
class A
    {
    protected string x = "Hello";
    public void P()
        {
        Console.WriteLine(x);
        }
    }
class B : A
    {
    public B()
        {
        x = "Hello2";
        }
    }
Then:
A a = new A();
B b = new B();
a.P();
b.P();
will print:
Hello
Hello2
Which is what you want, isn't it?
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

GeneralRe: Newbie Inheritance Question Pin
Rapier-50328-Jun-10 7:34
Rapier-50328-Jun-10 7:34 
AnswerRe: Newbie Inheritance Question Pin
Ennis Ray Lynch, Jr.28-Jun-10 3:43
Ennis Ray Lynch, Jr.28-Jun-10 3:43 
GeneralRe: Newbie Inheritance Question Pin
Łukasz Nowakowski28-Jun-10 4:43
Łukasz Nowakowski28-Jun-10 4:43 
GeneralRe: Newbie Inheritance Question Pin
Richard MacCutchan28-Jun-10 4:55
mveRichard MacCutchan28-Jun-10 4:55 
GeneralRe: Newbie Inheritance Question Pin
Łukasz Nowakowski28-Jun-10 4:58
Łukasz Nowakowski28-Jun-10 4:58 
GeneralRe: Newbie Inheritance Question Pin
Ennis Ray Lynch, Jr.28-Jun-10 5:00
Ennis Ray Lynch, Jr.28-Jun-10 5:00 
AnswerRe: Newbie Inheritance Question Pin
PIEBALDconsult28-Jun-10 13:55
mvePIEBALDconsult28-Jun-10 13:55 
QuestionSimilation of UPnP device in C# Pin
Eduard Meciar28-Jun-10 3:18
Eduard Meciar28-Jun-10 3:18 
AnswerRe: Similation of UPnP device in C# Pin
Ravi Bhavnani28-Jun-10 3:53
professionalRavi Bhavnani28-Jun-10 3:53 
QuestionUse of design?? Pin
sujithkumarsl28-Jun-10 2:31
sujithkumarsl28-Jun-10 2:31 
AnswerRe: Use of design?? Pin
PIEBALDconsult28-Jun-10 2:54
mvePIEBALDconsult28-Jun-10 2:54 
GeneralRe: Use of design?? Pin
sujithkumarsl28-Jun-10 2:57
sujithkumarsl28-Jun-10 2:57 
GeneralRe: Use of design?? Pin
PIEBALDconsult28-Jun-10 3:03
mvePIEBALDconsult28-Jun-10 3:03 
AnswerRe: Use of design?? Pin
yu-jian28-Jun-10 4:44
yu-jian28-Jun-10 4:44 
GeneralRe: Use of design?? Pin
PIEBALDconsult28-Jun-10 13:52
mvePIEBALDconsult28-Jun-10 13:52 
GeneralRe: Use of design?? Pin
yu-jian28-Jun-10 21:11
yu-jian28-Jun-10 21:11 
AnswerRe: Use of design?? Pin
T M Gray28-Jun-10 7:28
T M Gray28-Jun-10 7:28 

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.