A
Aleksey
Hi, guys!
I'm trying to write collection and in example to do this I observed
ListViewItemCollection public methods and properties. I was impressed when I
find that the methods definitions in ListViewItemCollection different from
methods in interfaces it implements!!!
For example:
IList methods:
int Add(object value);
void Insert(int index, object value);
ListViewItemCollection methods:
public virtual ListViewItem Add(ListViewItem value);
public ListViewItem Insert(int index, ListViewItem
item);
There is no method Add in ListViewItemCollection returns int!!!
May be I'm not qualified enough, but I don't understand how could they
change interface signature!!! It's not about the methods params, becuase I
suppose that they possibly use IList<>, so the parameter may be changed from
Object to ListViewItem... It's about the return value type!!!!
Your opinions... and any way you know to do such a things...
Best regards
Aleksey
I'm trying to write collection and in example to do this I observed
ListViewItemCollection public methods and properties. I was impressed when I
find that the methods definitions in ListViewItemCollection different from
methods in interfaces it implements!!!
For example:
IList methods:
int Add(object value);
void Insert(int index, object value);
ListViewItemCollection methods:
public virtual ListViewItem Add(ListViewItem value);
public ListViewItem Insert(int index, ListViewItem
item);
There is no method Add in ListViewItemCollection returns int!!!
May be I'm not qualified enough, but I don't understand how could they
change interface signature!!! It's not about the methods params, becuase I
suppose that they possibly use IList<>, so the parameter may be changed from
Object to ListViewItem... It's about the return value type!!!!
Your opinions... and any way you know to do such a things...
Best regards
Aleksey