I have a Method that accepts a generic parameter:
Code:
public void AddErrors<T>(T Validator)
{
 
}
I have two Validator classes (Incoming and Outgoing). Each contain an ERRORS collection. Below is an example of the OutgoingDefinition

It is defined as:
Code:
public List<Error<OutgoingErrors>> Errors {get;set;}
Error is a generic class that is a Translator of sorts that will hold a ErrorEnum and various other properties depending on the error type (i.e. Incoming/Outgoing)

What i want to do is create an instance of my Validator (either incoming or outgoing) and then pass it into my "AddErrors" method defined above.
On that validator, i want to grab the "ERRORS" property and get the value of that so that I can do something specific with it. The problem I'm having is validator.Errors doesn't compile since validator is defined as Generic.

So, I'm trying to use Reflection to grab the property info.

Code:
var errors = validator.GetType().GetProperty("Errors");
Once I grab the Errors Proprety Info, I'm trying to do a GetValue() on "errors" but I'm just haven't been able to obtain that property object

Can someone give me some pointers on how to obtain that?