✅ cannot be accessed with an instance reference
public static class Details
{
// class for drawing event
public class EventDrawModel
{
public static string title { get; set; }
}
// model for drawing event
private static EventDrawModel eventDrawModel = new EventDrawModel();
// this is specific update func only called when selected event is changed
public static void Update()
{
Details.eventDrawModel.title = "";
}
}public static class Details
{
// class for drawing event
public class EventDrawModel
{
public static string title { get; set; }
}
// model for drawing event
private static EventDrawModel eventDrawModel = new EventDrawModel();
// this is specific update func only called when selected event is changed
public static void Update()
{
Details.eventDrawModel.title = "";
}
}Member 'Details.EventDrawModel.title' cannot be accessed with an instance reference; qualify it with a type name insteadMember 'Details.EventDrawModel.title' cannot be accessed with an instance reference; qualify it with a type name insteadHow would one fix this issue?