Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
Questionsealed classes Pin
Sonia Gupta5-Sep-07 23:29
Sonia Gupta5-Sep-07 23:29 
AnswerRe: sealed classes Pin
originSH5-Sep-07 23:46
originSH5-Sep-07 23:46 
GeneralRe: sealed classes Pin
Sonia Gupta6-Sep-07 0:52
Sonia Gupta6-Sep-07 0:52 
GeneralRe: sealed classes Pin
Urs Enzler6-Sep-07 1:05
Urs Enzler6-Sep-07 1:05 
GeneralRe: sealed classes Pin
Pete O'Hanlon6-Sep-07 1:35
mvePete O'Hanlon6-Sep-07 1:35 
GeneralRe: sealed classes Pin
Pete O'Hanlon6-Sep-07 1:49
mvePete O'Hanlon6-Sep-07 1:49 
AnswerRe: sealed classes Pin
PIEBALDconsult6-Sep-07 4:49
mvePIEBALDconsult6-Sep-07 4:49 
GeneralRe: sealed classes Pin
Scott Dorman6-Sep-07 18:09
professionalScott Dorman6-Sep-07 18:09 
PIEBALDconsult wrote:
I very much dislike running up against sealed classes and having to find a less-elegant solution than inheritance.


I agree on this point, but there are also cases where sealed classes are useful. The most common use are for performance sensitive classes, utility helper classes (which can now use the static keyword, which also makes them sealed), and value types (all enums are sealed).

With the upcoming .NET 3.5 release, not being able to inherit a sealed class becomes less of an issue due to extension methods.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

QuestionInsert character Pin
M Riaz Bashir5-Sep-07 23:14
M Riaz Bashir5-Sep-07 23:14 
AnswerRe: Insert character Pin
blackjack21505-Sep-07 23:22
blackjack21505-Sep-07 23:22 
AnswerRe: Insert character Pin
Revathij5-Sep-07 23:53
Revathij5-Sep-07 23:53 
QuestionPost-Build on Vista Pin
Russell Jones5-Sep-07 23:04
Russell Jones5-Sep-07 23:04 
AnswerRe: Post-Build on Vista Pin
mav.northwind6-Sep-07 0:37
mav.northwind6-Sep-07 0:37 
GeneralRe: Post-Build on Vista Pin
Russell Jones6-Sep-07 3:33
Russell Jones6-Sep-07 3:33 
QuestionA question in Implement COM interface in C# [modified] Pin
G.Richard5-Sep-07 22:52
G.Richard5-Sep-07 22:52 
QuestionRichTextBox keyboard cursor Pin
mihksoft5-Sep-07 22:25
mihksoft5-Sep-07 22:25 
AnswerRe: RichTextBox keyboard cursor Pin
mav.northwind6-Sep-07 0:30
mav.northwind6-Sep-07 0:30 
QuestionModal Windows in smart parts Pin
umashankergr85-Sep-07 21:29
umashankergr85-Sep-07 21:29 
QuestionOLEDB problem Pin
sulabh20205-Sep-07 21:28
sulabh20205-Sep-07 21:28 
AnswerRe: OLEDB problem Pin
Pete O'Hanlon5-Sep-07 21:39
mvePete O'Hanlon5-Sep-07 21:39 
GeneralRe: OLEDB problem Pin
sulabh20205-Sep-07 21:42
sulabh20205-Sep-07 21:42 
QuestionWhy din't MS include Multile inheritance in C#? Pin
Blumen5-Sep-07 21:27
Blumen5-Sep-07 21:27 
AnswerRe: Why din't MS include Multile inheritance in C#? Pin
DavidNohejl5-Sep-07 21:47
DavidNohejl5-Sep-07 21:47 
AnswerRe: Why din't MS include Multile inheritance in C#? Pin
Pete O'Hanlon5-Sep-07 21:48
mvePete O'Hanlon5-Sep-07 21:48 
GeneralRe: Why din't MS include Multile inheritance in C#? Pin
J4amieC5-Sep-07 22:15
J4amieC5-Sep-07 22:15 

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.