How to access property of classes when using generics

Keywords: c# .net generics

Question: 

I have two classes, instance of which is getting passed to a method which accepts generic type. How can I access the properties for those concrete classes?

// basic class
public class ClassALogs
{
    public Guid ID { get; set; }
    public string DocType { get; } = "Hello";
}

public class ClassBLogs
{
    public Guid ID { get; set; }
    public string Region { get; } = "World";
}


//passsing data
SendLogs(List of ClassALogs object>);
SendLogs(List of ClassBLogs object>);


// function definition
public static SendLogs<TLog>(IEnumerable<TLog> logs)
{
    foreach(var item in logs)
    {
       if(typeof(TLog).Name == "ClassALogs")
       {
            var t1 = item.DocType // How to access the property ????
       }
       if(typeof(TLog).Name == "ClassBLogs")
       {
            var t2 = item.Region // How to access the property ????
       }
    }
}

Answers: