Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
QuestionEvaluating a value to a string Pin
Bill - Go Steelers!7-Apr-06 1:58
Bill - Go Steelers!7-Apr-06 1:58 
GeneralRe: Evaluating a value to a string Pin
Guffa7-Apr-06 2:34
Guffa7-Apr-06 2:34 
GeneralRe: Evaluating a value to a string Pin
Bill - Go Steelers!7-Apr-06 2:49
Bill - Go Steelers!7-Apr-06 2:49 
GeneralRe: Evaluating a value to a string Pin
Guffa7-Apr-06 6:13
Guffa7-Apr-06 6:13 
GeneralRe: Evaluating a value to a string Pin
Bill - Go Steelers!7-Apr-06 8:51
Bill - Go Steelers!7-Apr-06 8:51 
Questiontype conversions Pin
Jon Hulatt7-Apr-06 1:48
Jon Hulatt7-Apr-06 1:48 
AnswerRe: type conversions Pin
Guffa7-Apr-06 2:03
Guffa7-Apr-06 2:03 
GeneralRe: type conversions Pin
Jon Hulatt7-Apr-06 3:10
Jon Hulatt7-Apr-06 3:10 
Guffa wrote:
Yes, you can. You can access any protected members from the derived class. That is exactly what the protected keyword does, it allows access only from members of the class and from members of any derived classes.


Not in the scenario I described above, you can't. Look at this example:-

class A
{
    protected string astring = "hello world";
}

class B : A
{
    public static B FromA(A ainstance)
    {
        string testing = ainstance.astring; // <-- Can't do this
    }
}


using System.Beer;

AnswerRe: type conversions Pin
Guffa7-Apr-06 6:38
Guffa7-Apr-06 6:38 
GeneralRe: type conversions Pin
S. Senthil Kumar7-Apr-06 18:37
S. Senthil Kumar7-Apr-06 18:37 
QuestionI have a question about MDI application. Pin
Alexander Kochurov7-Apr-06 1:00
Alexander Kochurov7-Apr-06 1:00 
AnswerRe: I have a question about MDI application. Pin
malharone7-Apr-06 19:16
malharone7-Apr-06 19:16 
GeneralRe: I have a question about MDI application. Pin
Alexander Kochurov9-Apr-06 20:07
Alexander Kochurov9-Apr-06 20:07 
QuestionPINVOKE.NET Add-In for Visual Studio Pin
t4ure4n7-Apr-06 0:58
t4ure4n7-Apr-06 0:58 
AnswerRe: PINVOKE.NET Add-In for Visual Studio Pin
J. Dunlap7-Apr-06 1:31
J. Dunlap7-Apr-06 1:31 
QuestionHow to get data from SqlDataSource Pin
papa19807-Apr-06 0:42
papa19807-Apr-06 0:42 
AnswerRe: How to get data from SqlDataSource Pin
albCode7-Apr-06 0:45
albCode7-Apr-06 0:45 
GeneralRe: How to get data from SqlDataSource Pin
papa19807-Apr-06 0:54
papa19807-Apr-06 0:54 
GeneralRe: How to get data from SqlDataSource Pin
albCode7-Apr-06 2:04
albCode7-Apr-06 2:04 
GeneralRe: How to get data from SqlDataSource Pin
papa19807-Apr-06 2:12
papa19807-Apr-06 2:12 
GeneralRe: How to get data from SqlDataSource Pin
papa19807-Apr-06 2:20
papa19807-Apr-06 2:20 
QuestionDisabling a program after a certain time Pin
naglbitur7-Apr-06 0:29
naglbitur7-Apr-06 0:29 
AnswerRe: Disabling a program after a certain time Pin
scoroop7-Apr-06 0:41
scoroop7-Apr-06 0:41 
QuestionVS.NET 2003 & Source Safe 6d - SCC bound WebService project fails to open Pin
Chris Richner7-Apr-06 0:25
Chris Richner7-Apr-06 0:25 
QuestionC# takes a long time to connect to SQL 7 ? Pin
rmhewa7-Apr-06 0:22
rmhewa7-Apr-06 0:22 

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.