Click here to Skip to main content
15,924,935 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hard drive serial number Pin
Yosh_30-Jul-07 1:58
professionalYosh_30-Jul-07 1:58 
AnswerRe: Hard drive serial number Pin
Harkamal Singh28-Jul-07 22:27
Harkamal Singh28-Jul-07 22:27 
Questioninternal/internal protected Pin
Sonia Gupta27-Jul-07 2:12
Sonia Gupta27-Jul-07 2:12 
AnswerRe: internal/internal protected Pin
Pete O'Hanlon27-Jul-07 2:17
mvePete O'Hanlon27-Jul-07 2:17 
GeneralRe: internal/internal protected Pin
Sonia Gupta27-Jul-07 2:22
Sonia Gupta27-Jul-07 2:22 
GeneralRe: internal/internal protected Pin
Malcolm Smart27-Jul-07 2:24
Malcolm Smart27-Jul-07 2:24 
GeneralRe: internal/internal protected Pin
Pete O'Hanlon29-Jul-07 10:04
mvePete O'Hanlon29-Jul-07 10:04 
GeneralRe: internal/internal protected Pin
Pete O'Hanlon29-Jul-07 10:13
mvePete O'Hanlon29-Jul-07 10:13 
Sonia - suppose you have an assembly called Assembly1. This contains the following:
public class Class1
{
  protected internal string MyVariable;
}

public class Class2
{
  public void DoSomething()
  {
    Class1 class1 = new Class1();
    class1.MyVariable = "Hello"; // Even though Class2 doesn't inherit from class1, it can still see MyVariable.
  }
}
Now, in a new Assembly (Assembly2) you have:
public class Class3 : Class1
{
  public void Something2()
  {
    MyVariable = "Hello there"; // This works because Class3 inherits from Class1, so can see MyVariable
  }
}

public class Class4
{
  public void Something3()
  {
    Class3 class3 = new Class3();
    class3.MyVariable = "Hi there"; // This won't compile because it's not in the same assembly and it doesn't
                                    // inherit from Class1.
  }
}


Deja View - the feeling that you've seen this post before.

QuestionTreeView Bug! [modified] Pin
mjelten27-Jul-07 1:48
mjelten27-Jul-07 1:48 
AnswerRe: TreeView Bug! Pin
Paul Conrad28-Jul-07 17:49
professionalPaul Conrad28-Jul-07 17:49 
QuestionInstantiate Array of User defined type Pin
kildareflare27-Jul-07 1:36
kildareflare27-Jul-07 1:36 
AnswerRe: Instantiate Array of User defined type Pin
Pete O'Hanlon27-Jul-07 1:56
mvePete O'Hanlon27-Jul-07 1:56 
GeneralRe: Instantiate Array of User defined type Pin
kildareflare27-Jul-07 23:46
kildareflare27-Jul-07 23:46 
GeneralRe: Instantiate Array of User defined type Pin
PaulPrice29-Jul-07 21:04
PaulPrice29-Jul-07 21:04 
AnswerRe: Instantiate Array of User defined type [modified] Pin
PaulPrice27-Jul-07 2:53
PaulPrice27-Jul-07 2:53 
GeneralRe: Instantiate Array of User defined type Pin
leppie27-Jul-07 3:07
leppie27-Jul-07 3:07 
GeneralRe: Instantiate Array of User defined type Pin
kildareflare28-Jul-07 23:44
kildareflare28-Jul-07 23:44 
GeneralRe: Instantiate Array of User defined type Pin
PaulPrice29-Jul-07 21:10
PaulPrice29-Jul-07 21:10 
QuestionHow to retrieve local settings Pin
Stevo Z27-Jul-07 1:18
Stevo Z27-Jul-07 1:18 
AnswerRe: How to retrieve local settings Pin
Eduard Keilholz27-Jul-07 1:21
Eduard Keilholz27-Jul-07 1:21 
GeneralRe: How to retrieve local settings Pin
Stevo Z27-Jul-07 1:22
Stevo Z27-Jul-07 1:22 
QuestionDatagrid row selection Pin
Nisar Inamdar27-Jul-07 0:53
Nisar Inamdar27-Jul-07 0:53 
QuestionDataGridViewCell Pin
sangramkp27-Jul-07 0:36
sangramkp27-Jul-07 0:36 
AnswerRe: DataGridViewCell Pin
Chetan Patel27-Jul-07 1:07
Chetan Patel27-Jul-07 1:07 
QuestionHow to prioritize the UI thread as a process (.exe) eats up the resources Pin
Rafferty Uy27-Jul-07 0:26
Rafferty Uy27-Jul-07 0:26 

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.