Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
QuestionUsing Microosft.Ink Pin
dhol27-Nov-05 20:14
dhol27-Nov-05 20:14 
QuestionDatagrid with Fixed Header and Footer Pin
welcome_thennu27-Nov-05 20:00
welcome_thennu27-Nov-05 20:00 
QuestionServer Time Pin
Taravat27-Nov-05 19:38
Taravat27-Nov-05 19:38 
AnswerRe: Server Time Pin
Curtis Schlak.28-Nov-05 3:13
Curtis Schlak.28-Nov-05 3:13 
Questionproblem facing in windows service Pin
raheeli27-Nov-05 17:44
raheeli27-Nov-05 17:44 
AnswerRe: problem facing in windows service Pin
S. Senthil Kumar27-Nov-05 19:21
S. Senthil Kumar27-Nov-05 19:21 
QuestionStatic function Pin
dinh van hai27-Nov-05 17:33
dinh van hai27-Nov-05 17:33 
AnswerRe: Static function Pin
S. Senthil Kumar27-Nov-05 20:00
S. Senthil Kumar27-Nov-05 20:00 
dinh van hai wrote:
Is Static function advantage or disadvantage ?


Depends on the context. Static functions are useful for factory methods like Create, which create and return appropriate objects.

dinh van hai wrote:
How are they disadvantage ?


Static functions are like global functions, only that their scope is restricted to the class. So too many static functions and the class then becomes a dumping ground where you keep adding functions that don't fit elsewhere.

dinh van hai wrote:
Shuold I use many static function in a program ?


Of course you can. You can take the system defined static functions, like File.Create as a starting point.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
AnswerRe: Static function Pin
dinh van hai27-Nov-05 20:14
dinh van hai27-Nov-05 20:14 
AnswerRe: Static function Pin
Guffa27-Nov-05 21:38
Guffa27-Nov-05 21:38 
QuestionGetProcessesByName - other way? Pin
FreewareFire27-Nov-05 12:49
FreewareFire27-Nov-05 12:49 
AnswerRe: GetProcessesByName - other way? Pin
S. Senthil Kumar27-Nov-05 19:56
S. Senthil Kumar27-Nov-05 19:56 
GeneralRe: GetProcessesByName - other way? Pin
FreewareFire28-Nov-05 0:38
FreewareFire28-Nov-05 0:38 
QuestionToolbar Color Pin
fredspv27-Nov-05 12:07
fredspv27-Nov-05 12:07 
QuestionC# DisplayComposeForm for Smartphone Pin
bklynjava127-Nov-05 11:10
bklynjava127-Nov-05 11:10 
QuestionIndexOutOfRangeException with SgmlReader Pin
Liunardu27-Nov-05 8:18
Liunardu27-Nov-05 8:18 
Questioneh, 1 last mouse question... Pin
Sam 200627-Nov-05 8:12
Sam 200627-Nov-05 8:12 
AnswerRe: eh, 1 last mouse question... Pin
Curtis Schlak.27-Nov-05 8:43
Curtis Schlak.27-Nov-05 8:43 
GeneralRe: eh, 1 last mouse question... Pin
Sam 200627-Nov-05 12:40
Sam 200627-Nov-05 12:40 
GeneralRe: eh, 1 last mouse question... Pin
Curtis Schlak.27-Nov-05 13:58
Curtis Schlak.27-Nov-05 13:58 
Questionfrom DataSet to GridView Pin
tray_gator27-Nov-05 4:53
tray_gator27-Nov-05 4:53 
AnswerRe: from DataSet to GridView Pin
Curtis Schlak.27-Nov-05 5:07
Curtis Schlak.27-Nov-05 5:07 
GeneralRe: from DataSet to GridView Pin
tray_gator27-Nov-05 6:10
tray_gator27-Nov-05 6:10 
GeneralRe: from DataSet to GridView Pin
Curtis Schlak.27-Nov-05 7:38
Curtis Schlak.27-Nov-05 7:38 
GeneralRe: from DataSet to GridView Pin
tray_gator27-Nov-05 9:12
tray_gator27-Nov-05 9: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.