Below is my interface:
public interface IBaseService
{
List<ExceptionPairs> Exceptions { get; set; }
}
Another interface is inheriting it:
public interface IClassStudentsService: IBaseService
{
}
I have implemented this interface in below class:
public class CSService : IClassStudentsService
{
public List<ExceptionPairs> Exceptions
{
get;set;
}
}
I have created a object of CSService and tried to access List 'Exceptions'
but receiving error " Object reference not set to an instance of an object.
"
Can you please guide what I need to do instantiate it ?