By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Which method can I override in List<T> to validate inserts?

P: n/a
Hi!
I am looking for a simple way to validate members in my own System.Collections.Generic.List<>
derived class?

In CollectionBase, I can override OnValidate - is there a similar functionality
in List<>?

Regards

Niels HarremoŽs
Apr 20 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello,

no, you can't. List<Thas no overideable methods for performance reasons.

Best regards,
Henning Krause

"Niels Ull" <ni******@hotmail.comwrote in message
news:97*************************@msnews.microsoft. com...
Hi!
I am looking for a simple way to validate members in my own
System.Collections.Generic.List<derived class?

In CollectionBase, I can override OnValidate - is there a similar
functionality in List<>?

Regards

Niels HarremoŽs

Apr 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.