Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: Marshall structure with array Pin
Ox53746F6E655-Apr-05 20:01
Ox53746F6E655-Apr-05 20:01 
GeneralC# Setup and Deployment Winform App. Pin
rt71-Apr-05 11:57
rt71-Apr-05 11:57 
GeneralRe: C# Setup and Deployment Winform App. Pin
Dave Kreskowiak1-Apr-05 14:00
mveDave Kreskowiak1-Apr-05 14:00 
GeneralRe: C# Setup and Deployment Winform App. Pin
rt71-Apr-05 14:10
rt71-Apr-05 14:10 
GeneralRe: C# Setup and Deployment Winform App. Pin
Luis Alonso Ramos1-Apr-05 16:14
Luis Alonso Ramos1-Apr-05 16:14 
GeneralRe: C# Setup and Deployment Winform App. Pin
Dave Kreskowiak2-Apr-05 3:19
mveDave Kreskowiak2-Apr-05 3:19 
QuestionGlobals??? Pin
C# .NET Newbie1-Apr-05 11:27
sussC# .NET Newbie1-Apr-05 11:27 
AnswerRe: Globals??? Pin
Christian Graus1-Apr-05 11:45
protectorChristian Graus1-Apr-05 11:45 
C# .NET Newbie wrote:
I have read that globals are no longer a element of .NET C# that instead they call them static variables.

No, that is wrong. Globals have been bad programming practice for a long time, but they were available in C++, which also had/has static variables.

C# .NET Newbie wrote:
However I was wondering is it possible to share static variables between different classes that are within the same project

If a class has a public static variable, then any other class can access it. I've worked on excrable VB.NET code with a class called 'Globals' that does this.

C# .NET Newbie wrote:
I am trying to figure out a efficient way of passing this array[200] of structs, that I have created between two classes.

The most logical thing I would suspect is that the array needs to sit in a third class that these two classes commonly access. It sounds like it belongs to neither one class or the other. If this is not the case ( it belongs to one, but the other needs to use it ), then you need to pass it to this class, either in the method that uses it ( if it's commonly used in class two, see my first suggestion ), or perhaps via a delegate that can be called to retrieve it as needed.



Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralWeb Services - c# chat application Pin
wakkerjack1-Apr-05 11:21
wakkerjack1-Apr-05 11:21 
GeneralCatastrophic failure Pin
webhay1-Apr-05 9:50
webhay1-Apr-05 9:50 
GeneralRe: Catastrophic failure Pin
Christian Graus1-Apr-05 11:50
protectorChristian Graus1-Apr-05 11:50 
GeneralRe: Catastrophic failure Pin
Dave Kreskowiak1-Apr-05 13:55
mveDave Kreskowiak1-Apr-05 13:55 
GeneralChanging Files Security Properties with C# Pin
markaelkins1-Apr-05 9:23
markaelkins1-Apr-05 9:23 
GeneralRe: Changing Files Security Properties with C# Pin
ACorbs1-Apr-05 11:18
ACorbs1-Apr-05 11:18 
GeneralRe: Changing Files Security Properties with C# Pin
markaelkins1-Apr-05 11:39
markaelkins1-Apr-05 11:39 
Generalwin form app access web server Pin
MrJJKoolJ1-Apr-05 8:40
MrJJKoolJ1-Apr-05 8:40 
GeneralPIA's with Word 2000 and C# Pin
Michele@MERC1-Apr-05 7:58
Michele@MERC1-Apr-05 7:58 
GeneralRe: PIA's with Word 2000 and C# Pin
Mircea Grelus19-Apr-05 1:56
Mircea Grelus19-Apr-05 1:56 
GeneralParsing coma seperated values Pin
jctk1-Apr-05 6:44
jctk1-Apr-05 6:44 
GeneralRe: Parsing coma seperated values Pin
Judah Gabriel Himango1-Apr-05 7:12
sponsorJudah Gabriel Himango1-Apr-05 7:12 
GeneralRe: Parsing coma seperated values Pin
jctk1-Apr-05 7:27
jctk1-Apr-05 7:27 
GeneralRe: Parsing coma seperated values Pin
Carl Mercier1-Apr-05 7:31
Carl Mercier1-Apr-05 7:31 
Generalproblem accessing data in a btn event Pin
brian551-Apr-05 6:33
brian551-Apr-05 6:33 
GeneralRe: problem accessing data in a btn event Pin
Colin Angus Mackay1-Apr-05 7:42
Colin Angus Mackay1-Apr-05 7:42 
GeneralRe: problem accessing data in a btn event Pin
brian551-Apr-05 7:55
brian551-Apr-05 7:55 

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.