I have two different libraries which refereed the base library called base.dll. One library using for web platforms another one using for windows platform (WPF). I have to restrict restrict one public property in WPF platform but I want to access it in web platform. How can achieve this? I am trying condition compilation but I don’t know how to do exactly. Please help me
For Ex:- Base library:
public Class CommonClass{
public string CssClass
{
get;
set;
}
}
Referenced Library 1 (Web) – Referenced the base library, need to access CssClass in this library
Referenced Library 2: (WPF) - Referenced the base library, need to restrict CssClass in this library