Click here to Skip to main content
15,914,780 members
Home / Discussions / C#
   

C#

 
Questionzipping and unzipping Pin
pankaj b13-Jan-06 0:27
pankaj b13-Jan-06 0:27 
AnswerRe: zipping and unzipping Pin
MrEyes13-Jan-06 2:07
MrEyes13-Jan-06 2:07 
Questionfor pliu_2000 Pin
Sasuko12-Jan-06 23:54
Sasuko12-Jan-06 23:54 
QuestionMarshalling char** Pin
ceno12-Jan-06 23:34
ceno12-Jan-06 23:34 
QuestionPrintPreviewDialog question Pin
Stanciu Vlad12-Jan-06 22:44
Stanciu Vlad12-Jan-06 22:44 
QuestionFile Access over a UNC Pin
exhaulted12-Jan-06 22:09
exhaulted12-Jan-06 22:09 
Questionhow to impove efficiency by using BULK INSERT statement? Pin
CooperWu12-Jan-06 21:20
CooperWu12-Jan-06 21:20 
AnswerRe: how to impove efficiency by using BULK INSERT statement? Pin
CooperWu19-Jan-06 18:33
CooperWu19-Jan-06 18:33 
QuestionHow could I make a Name attribute a primary key? Pin
MBursill12-Jan-06 20:59
MBursill12-Jan-06 20:59 
AnswerRe: How could I make a Name attribute a primary key? Pin
Guffa12-Jan-06 21:48
Guffa12-Jan-06 21:48 
Questionprob of Janus controls Pin
amalatsliit12-Jan-06 20:15
amalatsliit12-Jan-06 20:15 
QuestionWeb services Pin
LeetranAus12-Jan-06 20:00
LeetranAus12-Jan-06 20:00 
QuestionConstructors & Destructors? Pin
moazzamahmed12-Jan-06 19:46
moazzamahmed12-Jan-06 19:46 
AnswerRe: Constructors & Destructors? Pin
Guffa12-Jan-06 21:08
Guffa12-Jan-06 21:08 
GeneralRe: Constructors & Destructors? Pin
moazzamahmed13-Jan-06 7:06
moazzamahmed13-Jan-06 7:06 
GeneralRe: Constructors & Destructors? Pin
Dan Neely13-Jan-06 8:09
Dan Neely13-Jan-06 8:09 
AnswerRe: Constructors & Destructors? Pin
Guffa15-Jan-06 23:00
Guffa15-Jan-06 23:00 
moazzamahmed wrote:
so whats the use of static classes over non-static? which ones should
we use for what TYPE of object?


Use a static class when you don't need to create objects from the class. Generally static classes don't contain any data at all, or if they do, it's data that is common to the entire application.

moazzamahmed wrote:
whats better for speed and performance?


Calling a static method means that a reference to the object isn't included in the call, saving one instruction. This difference is hardly ever anything that you have to be concerned about, though. Concentrate on what gives the best structure to the code, and start thinking about optimizing when you run into performance problems. But even then, there are a lot of other things that are likely to boost performance a lot more than using static methods instead of non-static.

---
b { font-weight: normal; }

QuestionDot Net Deployment Pin
chudapji12-Jan-06 18:34
chudapji12-Jan-06 18:34 
AnswerRe: Dot Net Deployment Pin
mav.northwind12-Jan-06 20:30
mav.northwind12-Jan-06 20:30 
GeneralRe: Dot Net Deployment Pin
chudapji13-Jan-06 0:51
chudapji13-Jan-06 0:51 
QuestionShow menu from form other than MDI form? Pin
MudkiSekhon12-Jan-06 18:19
MudkiSekhon12-Jan-06 18:19 
AnswerRe: Show menu from form other than MDI form? Pin
Luis Alonso Ramos12-Jan-06 18:24
Luis Alonso Ramos12-Jan-06 18:24 
GeneralRe: Show menu from form other than MDI form? Pin
MudkiSekhon12-Jan-06 18:31
MudkiSekhon12-Jan-06 18:31 
GeneralRe: Show menu from form other than MDI form? Pin
Luis Alonso Ramos12-Jan-06 18:37
Luis Alonso Ramos12-Jan-06 18:37 
GeneralRe: Show menu from form other than MDI form? Pin
MudkiSekhon12-Jan-06 19:04
MudkiSekhon12-Jan-06 19:04 

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.