I am having a weird error in c#. My code gives the error "Inconsistent accessibility: field type 'Rotanet.RN_BUDGET_SETTINGS' is less accessible than field 'Rotanet.BudgetSettingsDetailFrm.aBudgetSettings'" . I know it is about PUBLIC/PROTECTED/PRIVATE things but I couldnt understand what I should do to fix it.
here is my code that gives the error
namespace Rotanet
{
public partial class BudgetSettingsDetailFrm : DevExpress.XtraEditors.XtraForm
{
public RN_BUDGET_SETTINGS aBudgetSettings = null; //***** this gives the error
public BudgetSettingsDetailFrm()
{
InitializeComponent();
}
private void btnSave_Click(object sender, EventArgs e)
{
}
}
}
and the RN_BUDGET_SETTINGS is a simple class like below...
namespace Rotanet
{
class RN_BUDGET_SETTINGS : RN_AUDIT
{
public RN_BUDGET_SETTINGS()
{
}
#region Properties
[IsKey(true)]
public dynamic ID { get; set; }
public dynamic TANIM { get; set; }
public dynamic DEGER { get; set; }
#endregion
}
}
How can I fix this problem