Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: www.codeproject.com Pin
needhelpinnet6-Mar-07 8:43
needhelpinnet6-Mar-07 8:43 
GeneralRe: www.codeproject.com Pin
Vasudevan Deepak Kumar6-Mar-07 9:13
Vasudevan Deepak Kumar6-Mar-07 9:13 
QuestionStatic methods and Thread safety Pin
Abisodun6-Mar-07 7:59
Abisodun6-Mar-07 7:59 
AnswerRe: Static methods and Thread safety [modified] Pin
Leslie Sanford6-Mar-07 8:12
Leslie Sanford6-Mar-07 8:12 
GeneralRe: Static methods and Thread safety Pin
Abisodun6-Mar-07 8:22
Abisodun6-Mar-07 8:22 
GeneralRe: Static methods and Thread safety Pin
Abisodun6-Mar-07 9:08
Abisodun6-Mar-07 9:08 
GeneralRe: Static methods and Thread safety Pin
Leslie Sanford6-Mar-07 9:42
Leslie Sanford6-Mar-07 9:42 
GeneralRe: Static methods and Thread safety Pin
Abisodun7-Mar-07 2:02
Abisodun7-Mar-07 2:02 
Your statement's been bugging me now I realize why. This code will cause a compilation error:

class MyClass
{
internal string stringVariable = string.Empty;
internal static void MyFunction()
{
stringVariable += "a";
}
}

Did you mean static variable of the class?

Instance variable always refers to a non static variable.

i.e.
class MyClass
{
internal string stringVariable = string.Empty;
internal static void MyFunction()
{
MyClass myClass = new MyClass();
myClass.stringVariable += "a";
}
}

which should not be a problem in a static method of the same class.


GeneralRe: Static methods and Thread safety Pin
Leslie Sanford7-Mar-07 4:39
Leslie Sanford7-Mar-07 4:39 
GeneralRe: Static methods and Thread safety Pin
Abisodun7-Mar-07 5:57
Abisodun7-Mar-07 5:57 
QuestionDeclaring Sql Server Variables in C# Using .Net Remoting Pin
sunny_days6-Mar-07 7:34
sunny_days6-Mar-07 7:34 
AnswerRe: Declaring Sql Server Variables in C# Using .Net Remoting Pin
kubben6-Mar-07 10:02
kubben6-Mar-07 10:02 
QuestionIntellectual Property Protection BEYOND OBSFUCATION Pin
mike montagne6-Mar-07 6:42
mike montagne6-Mar-07 6:42 
AnswerRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
Glen Harvy6-Mar-07 19:50
Glen Harvy6-Mar-07 19:50 
GeneralRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
mike montagne7-Mar-07 8:24
mike montagne7-Mar-07 8:24 
GeneralRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
Glen Harvy7-Mar-07 12:23
Glen Harvy7-Mar-07 12:23 
GeneralRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
mike montagne7-Mar-07 13:20
mike montagne7-Mar-07 13:20 
GeneralRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
Glen Harvy7-Mar-07 14:17
Glen Harvy7-Mar-07 14:17 
GeneralRe: LICENSING Pin
mike montagne8-Mar-07 5:40
mike montagne8-Mar-07 5:40 
GeneralRe: LICENSING Pin
Glen Harvy8-Mar-07 11:50
Glen Harvy8-Mar-07 11:50 
GeneralRe: LICENSING Pin
mike montagne8-Mar-07 12:26
mike montagne8-Mar-07 12:26 
GeneralRe: LICENSING Pin
mike montagne8-Mar-07 12:34
mike montagne8-Mar-07 12:34 
GeneralRe: LICENSING Pin
mike montagne8-Mar-07 12:39
mike montagne8-Mar-07 12:39 
GeneralRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
mike montagne7-Mar-07 13:40
mike montagne7-Mar-07 13:40 
GeneralRe: Intellectual Property Protection BEYOND OBSFUCATION Pin
mike montagne7-Mar-07 14:12
mike montagne7-Mar-07 14:12 

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.