Something more serious than Obsolete.
Peter Obiefuna <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Hope everyone is having a happy new year so far!
I intend to block compile-time access to some inherited methods. My
preference would be a method Attribute that throws a compile-time error.
Does anyone know of any?
----------------------------
[Obsolete("This method is invalid for an empty collection.")]
protected override void InsertItem(int index, TDomain item)
{
throw new InvalidOperationException(
"This method is invalid for an empty collection.");
}
---------------------------
P
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com