Click here to Skip to main content
15,911,141 members
Home / Discussions / C#
   

C#

 
QuestionChild processes that is started by a logon process ends when the parent process ends in Windows 2000 Pin
pranu_1315-May-08 1:52
pranu_1315-May-08 1:52 
AnswerRe: Child processes that is started by a logon process ends when the parent process ends in Windows 2000 Pin
Dario Solera15-May-08 2:00
Dario Solera15-May-08 2:00 
Questionlate binding Pin
Pankaj Garg15-May-08 1:52
Pankaj Garg15-May-08 1:52 
AnswerRe: late binding Pin
dan!sh 15-May-08 2:07
professional dan!sh 15-May-08 2:07 
AnswerRe: late binding Pin
CPallini15-May-08 2:10
mveCPallini15-May-08 2:10 
QuestionRe: late binding Pin
Pankaj Garg15-May-08 2:54
Pankaj Garg15-May-08 2:54 
AnswerRe: late binding Pin
CPallini15-May-08 3:11
mveCPallini15-May-08 3:11 
AnswerRe: late binding Pin
Guffa15-May-08 7:29
Guffa15-May-08 7:29 
This has nothing to do with late binding. Late binding is when you create an object where the class of the object is determined at runtime.

To properly declare a member that hides the member in the base class, you use the new keyword:
public class a {
    public int i = 0;
}

public class b : a {
    public new int i = 2;
}

The new keyword tells the compiler that the hiding was intentional, so that it doesn't produce a warning.

To access the hidden member, you just have to cast the reference into the class a:
b bb = new b();
// bb.i is 2
// ((a)bb).i is 2
a aa = bb;
// aa.i is 2


Despite everything, the person most likely to be fooling you next is yourself.

Questioncould anyone tell me Pin
prasadbuddhika15-May-08 1:18
prasadbuddhika15-May-08 1:18 
AnswerRe: could anyone tell me Pin
Ashfield15-May-08 3:08
Ashfield15-May-08 3:08 
QuestionBest way to insert DataSet to database table Pin
cokelite15-May-08 0:44
cokelite15-May-08 0:44 
AnswerRe: Best way to insert DataSet to database table Pin
Bert delaVega15-May-08 7:16
Bert delaVega15-May-08 7:16 
QuestionImplement ListView Itemplate - for dynamically building a listview itemtemplaet Pin
harleydk15-May-08 0:42
harleydk15-May-08 0:42 
QuestionHow to preserve Master page data whenever conten page is loaded? Pin
.NetRams15-May-08 0:10
.NetRams15-May-08 0:10 
AnswerRe: How to preserve Master page data whenever conten page is loaded? Pin
harleydk15-May-08 0:39
harleydk15-May-08 0:39 
QuestionHow do I create a PropertyGrid with dynamic Properties? Pin
Megidolaon14-May-08 23:51
Megidolaon14-May-08 23:51 
AnswerRe: How do I create a PropertyGrid with dynamic Properties? Pin
Gareth H14-May-08 23:57
Gareth H14-May-08 23:57 
GeneralRe: How do I create a PropertyGrid with dynamic Properties? Pin
Megidolaon15-May-08 0:23
Megidolaon15-May-08 0:23 
GeneralRe: How do I create a PropertyGrid with dynamic Properties? Pin
visualhint22-May-08 9:37
visualhint22-May-08 9:37 
Questionproblem in Range selection Pin
sailesh_gupta14-May-08 23:37
sailesh_gupta14-May-08 23:37 
AnswerRe: problem in Range selection Pin
Christian Graus14-May-08 23:53
protectorChristian Graus14-May-08 23:53 
QuestionRe: problem in Range selection Pin
sailesh_gupta14-May-08 23:59
sailesh_gupta14-May-08 23:59 
AnswerRe: problem in Range selection Pin
Christian Graus15-May-08 0:41
protectorChristian Graus15-May-08 0:41 
GeneralRe: problem in Range selection Pin
sailesh_gupta15-May-08 0:52
sailesh_gupta15-May-08 0:52 
QuestionRe: problem in Range selection Pin
CPallini15-May-08 0:56
mveCPallini15-May-08 0:56 

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.