Click here to Skip to main content
15,923,120 members
Home / Discussions / C#
   

C#

 
AnswerRe: one more somewhat dumb question... Pin
musefan3-Feb-09 5:38
musefan3-Feb-09 5:38 
GeneralRe: one more somewhat dumb question... Pin
EliottA3-Feb-09 5:49
EliottA3-Feb-09 5:49 
GeneralRe: one more somewhat dumb question... Pin
musefan3-Feb-09 5:59
musefan3-Feb-09 5:59 
GeneralRe: one more somewhat dumb question... Pin
l a u r e n3-Feb-09 6:47
l a u r e n3-Feb-09 6:47 
GeneralRe: one more somewhat dumb question... Pin
musefan3-Feb-09 6:56
musefan3-Feb-09 6:56 
GeneralRe: one more somewhat dumb question... Pin
l a u r e n3-Feb-09 7:20
l a u r e n3-Feb-09 7:20 
AnswerRe: one more somewhat dumb question... Pin
humayunlalzad3-Feb-09 5:57
humayunlalzad3-Feb-09 5:57 
AnswerRe: one more somewhat dumb question... [modified] Pin
Luc Pattyn3-Feb-09 6:03
sitebuilderLuc Pattyn3-Feb-09 6:03 
Hi,

all methods are part of one class or other; there are no global methods.
A public static method is called by ClassName.MethodName(parms).
A public non-static method is called by MyClassInstance.MethodName(parms).

You normally pass MyClassInstance to whomever is interested, and/or you define an interface (which promises availability of some methods, but does not specify a particular class implementing them),
or, best of all, you pass a delegate (that is how you keep dependencies low).

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Friday, June 10, 2011 11:39 AM

GeneralRe: one more somewhat dumb question... Pin
l a u r e n3-Feb-09 6:46
l a u r e n3-Feb-09 6:46 
Questiondata connections and forms / apps Pin
l a u r e n3-Feb-09 4:58
l a u r e n3-Feb-09 4:58 
AnswerRe: data connections and forms / apps Pin
Rob Philpott3-Feb-09 5:06
Rob Philpott3-Feb-09 5:06 
GeneralRe: data connections and forms / apps Pin
l a u r e n3-Feb-09 5:11
l a u r e n3-Feb-09 5:11 
GeneralRe: data connections and forms / apps Pin
Rob Philpott3-Feb-09 5:30
Rob Philpott3-Feb-09 5:30 
GeneralRe: data connections and forms / apps Pin
l a u r e n3-Feb-09 7:21
l a u r e n3-Feb-09 7:21 
GeneralRe: data connections and forms / apps Pin
Rob Philpott3-Feb-09 7:40
Rob Philpott3-Feb-09 7:40 
AnswerRe: data connections and forms / apps Pin
Le centriste3-Feb-09 5:21
Le centriste3-Feb-09 5:21 
GeneralRe: data connections and forms / apps Pin
l a u r e n3-Feb-09 5:22
l a u r e n3-Feb-09 5:22 
Questionchanging button status Pin
R.Dubé3-Feb-09 4:48
R.Dubé3-Feb-09 4:48 
AnswerRe: changing button status Pin
l a u r e n3-Feb-09 5:00
l a u r e n3-Feb-09 5:00 
GeneralRe: changing button status Pin
R.Dubé3-Feb-09 5:23
R.Dubé3-Feb-09 5:23 
GeneralRe: changing button status Pin
EliottA3-Feb-09 5:25
EliottA3-Feb-09 5:25 
AnswerRe: changing button status [modified] Pin
EliottA3-Feb-09 5:24
EliottA3-Feb-09 5:24 
GeneralRe: changing button status Pin
R.Dubé3-Feb-09 6:13
R.Dubé3-Feb-09 6:13 
GeneralRe: changing button status Pin
EliottA3-Feb-09 6:16
EliottA3-Feb-09 6:16 
GeneralRe: changing button status Pin
R.Dubé3-Feb-09 6:27
R.Dubé3-Feb-09 6:27 

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.