Click here to Skip to main content
15,889,527 members
Home / Discussions / C#
   

C#

 
QuestionMethods of a collection class are not always called Pin
CDP180211-Mar-12 16:52
CDP180211-Mar-12 16:52 
AnswerRe: Methods of a collection class are not always called Pin
Luc Pattyn11-Mar-12 17:26
sitebuilderLuc Pattyn11-Mar-12 17:26 
GeneralRe: Methods of a collection class are not always called Pin
CDP180211-Mar-12 23:34
CDP180211-Mar-12 23:34 
GeneralRe: Methods of a collection class are not always called Pin
lukeer12-Mar-12 3:11
lukeer12-Mar-12 3:11 
AnswerRe: Methods of a collection class are not always called Pin
Luc Pattyn12-Mar-12 3:26
sitebuilderLuc Pattyn12-Mar-12 3:26 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 4:03
CDP180212-Mar-12 4:03 
AnswerRe: Methods of a collection class are not always called Pin
Luc Pattyn12-Mar-12 4:23
sitebuilderLuc Pattyn12-Mar-12 4:23 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 21:21
CDP180212-Mar-12 21:21 
Good morning!

Luc Pattyn wrote:
new is not the solution as my code sample explained; what you want
is override, and if the base method isn't virtual, you're in trouble.


Yes, you are right. Everything would be ok if the methods were virtual.

Luc Pattyn wrote:
Anyway, inheriting/implementing both List and IList
looks quite fishy. If you insist on using List, you'll have to use
aggregation, not inheritance, and provide each and every method you need
yourself.


I agree again. It is just that 'aggregating' a single class within another means wrapping one class into the other. That would also not have been very elegant, but it would have set all questions about the implementation of IList straight. ObservableList works fine for now, but I must be careful not to get a similar situation again and then I may yet have to wrap it up.
I'm invincible, I can't be vinced



AnswerRe: Methods of a collection class are not always called Pin
Pete O'Hanlon11-Mar-12 20:01
mvePete O'Hanlon11-Mar-12 20:01 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 0:07
CDP180212-Mar-12 0:07 
GeneralRe: Methods of a collection class are not always called Pin
Pete O'Hanlon12-Mar-12 0:43
mvePete O'Hanlon12-Mar-12 0:43 
AnswerRe: Methods of a collection class are not always called Pin
Bernhard Hiller11-Mar-12 21:18
Bernhard Hiller11-Mar-12 21:18 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 0:27
CDP180212-Mar-12 0:27 
QuestionExport to Excel - DropDownList Pin
Andrew Woodward11-Mar-12 10:12
Andrew Woodward11-Mar-12 10:12 
Questioninsert image in datagrid Pin
MemberDotNetting11-Mar-12 9:06
MemberDotNetting11-Mar-12 9:06 
AnswerRe: insert image in datagrid Pin
OriginalGriff11-Mar-12 9:41
mveOriginalGriff11-Mar-12 9:41 
GeneralRe: insert image in datagrid Pin
MemberDotNetting12-Mar-12 7:09
MemberDotNetting12-Mar-12 7:09 
Questioncombobox Pin
MemberDotNetting11-Mar-12 4:42
MemberDotNetting11-Mar-12 4:42 
AnswerRe: combobox Pin
Ravi Bhavnani11-Mar-12 5:12
professionalRavi Bhavnani11-Mar-12 5:12 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 5:45
MemberDotNetting11-Mar-12 5:45 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 6:17
mveOriginalGriff11-Mar-12 6:17 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:29
MemberDotNetting11-Mar-12 6:29 
GeneralRe: combobox Pin
OriginalGriff11-Mar-12 6:51
mveOriginalGriff11-Mar-12 6:51 
GeneralRe: combobox Pin
MemberDotNetting11-Mar-12 6:59
MemberDotNetting11-Mar-12 6:59 
AnswerRe: combobox Pin
OriginalGriff11-Mar-12 5:12
mveOriginalGriff11-Mar-12 5: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.