How to contain compiler directives that will enable or disable sections of code using native library

I am using cross platform project (master details) some kind of shell for my application, also i am using brother printer library for iOS and Android (two binding project in the same solution with cross project), i am a little confused how to enable or disable sections of code to get compiler directives because at the moment when i am using iOS library and set up as a start up project for iOS and run the app i have got errors that piece of code does not exist in the current context and inversely for Android (when set up Android as a startup project). Could anyone give me some advice ? I am using Visual Studio 2017.

Sign In or Register to comment.