.NET Is it possible to disable IIf?

We had a problem with our code with people using IIf() , where they really should use If .

Is there a way to override IIf to disable it or make it obsolete using the <Obsolete()> ?

+6
source share
1 answer

You can remove Microsoft.VisualBasic dll from project links.

enter image description here

Then you cannot use the functions of VB6.

+12
source

All Articles