Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Show menu from form other than MDI form? Pin
Luis Alonso Ramos13-Jan-06 5:20
Luis Alonso Ramos13-Jan-06 5:20 
QuestionCrystal Report Deployment in C# Pin
aarontan12-Jan-06 18:16
aarontan12-Jan-06 18:16 
AnswerRe: Crystal Report Deployment in C# Pin
CooperWu12-Jan-06 21:24
CooperWu12-Jan-06 21:24 
QuestionHttpWebRequest and SSL Authentication Pin
Skoder12-Jan-06 17:48
Skoder12-Jan-06 17:48 
QuestionDataGrid Issue, Please Help Pin
student_rhr12-Jan-06 16:41
student_rhr12-Jan-06 16:41 
AnswerRe: DataGrid Issue, Please Help Pin
Daniel Santillanes13-Jan-06 4:50
professionalDaniel Santillanes13-Jan-06 4:50 
AnswerRe: DataGrid Issue, Please Help Pin
Drew McGhie13-Jan-06 5:49
Drew McGhie13-Jan-06 5:49 
GeneralRe: DataGrid Issue, Please Help Pin
student_rhr13-Jan-06 6:35
student_rhr13-Jan-06 6:35 
GeneralRe: DataGrid Issue, Please Help Pin
student_rhr13-Jan-06 6:53
student_rhr13-Jan-06 6:53 

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.