I want to compile different thing based on the visual studio version i'm using, something like
#if VISUAL_STUDIO_VERSION > 2015
eventH?.Invoke(this, EventArgs.Empty);
#else
if(eventH != null)
eventH(this, EventArgs.Empty);
#endif
how can i do this?
i tried something like
#if (_MSC_VER==1700)
based on this with no luck
Aucun commentaire:
Enregistrer un commentaire