Click here to Skip to main content
15,907,328 members
Home / Discussions / C#
   

C#

 
AnswerRe: Load XmlDocument from file Pin
Richard Deeming14-Mar-18 10:14
mveRichard Deeming14-Mar-18 10:14 
AnswerRe: While converting XML to JSON using c#... Pin
Dave Kreskowiak14-Mar-18 10:18
mveDave Kreskowiak14-Mar-18 10:18 
Questionwant to know how can i access a list from another class Pin
Member 1372660714-Mar-18 9:15
Member 1372660714-Mar-18 9:15 
AnswerRe: want to know how can i access a list from another class Pin
Dave Kreskowiak14-Mar-18 10:12
mveDave Kreskowiak14-Mar-18 10:12 
You don't. That would mean your other class would have to know about your Program class. That's a big encapsulation and separation of concerns no-no.

Your list should not be in the Program class. It should be in another class that maintains the list and exposes methods to manipulate it.

Then, you access the list in that class from the Program class, not the other way around.

AnswerRe: want to know how can i access a list from another class Pin
#realJSOP15-Mar-18 5:56
professional#realJSOP15-Mar-18 5:56 
QuestionC# CA1060 P/Invoke method Pin
Member 1371048711-Mar-18 17:15
Member 1371048711-Mar-18 17:15 
AnswerRe: C# CA1060 P/Invoke method Pin
Pete O'Hanlon11-Mar-18 22:16
mvePete O'Hanlon11-Mar-18 22:16 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff11-Mar-18 22:34
mveOriginalGriff11-Mar-18 22:34 
GeneralRe: C# CA1060 P/Invoke method Pin
Pete O'Hanlon11-Mar-18 22:52
mvePete O'Hanlon11-Mar-18 22:52 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048712-Mar-18 7:11
Member 1371048712-Mar-18 7:11 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048712-Mar-18 7:13
Member 1371048712-Mar-18 7:13 
GeneralRe: C# CA1060 P/Invoke method Pin
Pete O'Hanlon12-Mar-18 10:04
mvePete O'Hanlon12-Mar-18 10:04 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048712-Mar-18 13:45
Member 1371048712-Mar-18 13:45 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff13-Mar-18 0:18
mveOriginalGriff13-Mar-18 0:18 
GeneralRe: C# CA1060 P/Invoke method Pin
Eddy Vluggen13-Mar-18 4:35
professionalEddy Vluggen13-Mar-18 4:35 
GeneralRe: C# CA1060 P/Invoke method Pin
Member 1371048715-Mar-18 1:02
Member 1371048715-Mar-18 1:02 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff15-Mar-18 1:23
mveOriginalGriff15-Mar-18 1:23 
GeneralRe: C# CA1060 P/Invoke method Pin
Eddy Vluggen15-Mar-18 1:42
professionalEddy Vluggen15-Mar-18 1:42 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff15-Mar-18 1:47
mveOriginalGriff15-Mar-18 1:47 
GeneralRe: C# CA1060 P/Invoke method Pin
Eddy Vluggen15-Mar-18 2:06
professionalEddy Vluggen15-Mar-18 2:06 
GeneralRe: C# CA1060 P/Invoke method Pin
OriginalGriff15-Mar-18 2:14
mveOriginalGriff15-Mar-18 2:14 
GeneralRe: C# CA1060 P/Invoke method Pin
Eddy Vluggen15-Mar-18 2:28
professionalEddy Vluggen15-Mar-18 2:28 
GeneralRe: C# CA1060 P/Invoke method Pin
Richard MacCutchan15-Mar-18 2:56
mveRichard MacCutchan15-Mar-18 2:56 
GeneralRe: C# CA1060 P/Invoke method Pin
Eddy Vluggen15-Mar-18 3:13
professionalEddy Vluggen15-Mar-18 3:13 
GeneralRe: C# CA1060 P/Invoke method Pin
Richard MacCutchan15-Mar-18 3:56
mveRichard MacCutchan15-Mar-18 3:56 

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.