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

C#

 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 2:12
CWIZO18-Apr-04 2:12 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 2:31
John Baird18-Apr-04 2:31 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 3:51
CWIZO18-Apr-04 3:51 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 3:55
John Baird18-Apr-04 3:55 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 4:32
CWIZO18-Apr-04 4:32 
GeneralRe: Application Global Properties Pin
Heath Stewart19-Apr-04 2:35
protectorHeath Stewart19-Apr-04 2:35 
GeneralRe: Application Global Properties Pin
Anonymous19-Apr-04 2:52
Anonymous19-Apr-04 2:52 
GeneralRe: Application Global Properties Pin
Heath Stewart19-Apr-04 3:12
protectorHeath Stewart19-Apr-04 3:12 
Well first, you need to expose them. You're simply setting them on a struct, which goes out of scope so they can never be read again. While I don't particularly find this approach to settings at all attractive from an OO standpoint, the least you can do is provide static properties on this class using the guidelines I outlined. What you're doing right now won't work at all because the struct simply goes out of scope like in the rest of your thread the other replier mentioned.

 

Microsoft MVP, Visual C#
My Articles
Questionwhat should I do? marhal or unsafe??? Pin
Paolo Ponzano18-Apr-04 0:51
Paolo Ponzano18-Apr-04 0:51 
AnswerRe: what should I do? marhal or unsafe??? Pin
Daniel Turini18-Apr-04 1:14
Daniel Turini18-Apr-04 1:14 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano18-Apr-04 1:30
Paolo Ponzano18-Apr-04 1:30 
GeneralRe: what should I do? marhal or unsafe??? Pin
leppie18-Apr-04 4:50
leppie18-Apr-04 4:50 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano18-Apr-04 8:37
Paolo Ponzano18-Apr-04 8:37 
AnswerRe: what should I do? marhal or unsafe??? Pin
Heath Stewart19-Apr-04 2:42
protectorHeath Stewart19-Apr-04 2:42 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano19-Apr-04 7:43
Paolo Ponzano19-Apr-04 7:43 
GeneralRe: what should I do? marhal or unsafe??? Pin
Heath Stewart19-Apr-04 8:45
protectorHeath Stewart19-Apr-04 8:45 
GeneralRe: what should I do? marhal or unsafe??? Pin
Paolo Ponzano19-Apr-04 9:14
Paolo Ponzano19-Apr-04 9:14 
QuestionWhat component should i use? Pin
hfuiew17-Apr-04 23:51
hfuiew17-Apr-04 23:51 
AnswerRe: What component should i use? Pin
Mazdak18-Apr-04 0:25
Mazdak18-Apr-04 0:25 
AnswerRe: What component should i use? Pin
Suelinda_W26-Apr-04 6:02
Suelinda_W26-Apr-04 6:02 
GeneralReading all IP add in Local network Pin
sreejith ss nair17-Apr-04 23:15
sreejith ss nair17-Apr-04 23:15 
GeneralRe: Reading all IP add in Local network Pin
leppie18-Apr-04 0:49
leppie18-Apr-04 0:49 
GeneralRe: Reading all IP add in Local network Pin
Anonymous18-Apr-04 3:11
Anonymous18-Apr-04 3:11 
GeneralRe: Reading all IP add in Local network Pin
Dave Kreskowiak18-Apr-04 4:47
mveDave Kreskowiak18-Apr-04 4:47 
Generallocking problem in continous insert Pin
dabuskol17-Apr-04 22:19
dabuskol17-Apr-04 22:19 

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.