The other day at work I ran into an attribute I hadn't heard about, the [Conditional] attribute. In this post I start by describing conditional compilation using pre-processor directives like #if, and then introduce the [Conditional] attribute, and describe how it differs to using #if.Conditional compilation with #if With the release of .NET Core 5 years ago (has it really been that long?!) the need to multi-target .NET libraries and applications became more prominent. As the early versions of .NET...

Tagi: compiler
Źródło: andrewlock.net
Dziel się z innymi:
Conditional compilation for ignoring method calls with the ConditionalAttribute

Inne 1035 dni, 15 godzin, 3 minuty temu Piotr Stapp 18 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi w tym miesiącu