I need to keep my enumeration internal and I need to keep my class style public. How to handle in this situation?
public class Style : VisionItem, BaseItem
{
public string TargetType { get; set; }
public string FontFamily { get; set; }
public int FontSize { get; set; }
public StyleType Type { get; set; }
}
internal enum StyleType
{
TextCss,
TextJs
}
I received such error: Inconsistent accessibility: property type 'StyleType' is less accessible than property 'Style.Type'
The type Style can be public, but external code can't see the Type property. eg