P
Phill W.
If I have a reusbale (GAC-'registered') assembly that contains two,
[cross-]related classes (imagine a DataSet and DataTable; the former
contains instances of the latter, the latter has a reference to its
parent .. er .. former).
I want to make /both/ of these classes Obsolete, so I added Obsolete
attributes to both. When these are only Warnings ...
<Obsolete("DO NOT USE", False)>
.... all is well; I can compile my assembly and get Warnings if I try to
compile other code against them.
My problem, though, is that I want to make these Errors, so that people
really /really/ can't compile against them. So, I up-ed the Obsolete
attribute to be an error ...
<Obsolete("NO, REALLY - DO NOT USE", True)>
.... but now I can't compile *my* assembly, because the Obsolete classes
refer to one another!
Is there any way of doing this?
An "IgnoreObsoleteAttributeOn(System.Type)" attribute, perhaps?
TIA,
Phill W.
oone is parent
[cross-]related classes (imagine a DataSet and DataTable; the former
contains instances of the latter, the latter has a reference to its
parent .. er .. former).
I want to make /both/ of these classes Obsolete, so I added Obsolete
attributes to both. When these are only Warnings ...
<Obsolete("DO NOT USE", False)>
.... all is well; I can compile my assembly and get Warnings if I try to
compile other code against them.
My problem, though, is that I want to make these Errors, so that people
really /really/ can't compile against them. So, I up-ed the Obsolete
attribute to be an error ...
<Obsolete("NO, REALLY - DO NOT USE", True)>
.... but now I can't compile *my* assembly, because the Obsolete classes
refer to one another!
Is there any way of doing this?
An "IgnoreObsoleteAttributeOn(System.Type)" attribute, perhaps?
TIA,
Phill W.
oone is parent