Example #1
0
 internal static ClientRunListBase GetClientRunList(this LogFileType logFileType)
 {
     if (logFileType.Equals(LogFileType.Legacy))
     {
         return(Activator.CreateInstance <ClientRunListLegacy>());
     }
     return(Activator.CreateInstance <ClientRunList>());
 }
Example #2
0
 internal static LogLineParserBase GetLogLineParser(this LogFileType logFileType)
 {
     if (logFileType.Equals(LogFileType.Legacy))
     {
         return(Activator.CreateInstance <LogLineParserLegacy>());
     }
     return(Activator.CreateInstance <LogLineParser>());
 }
Example #3
0
 internal static LogLineListBase GetLogLineList(this LogFileType logFileType)
 {
     if (logFileType.Equals(LogFileType.Legacy))
     {
         return((LogLineListBase)Activator.CreateInstance(typeof(LogLineListLegacy), logFileType));
     }
     return((LogLineListBase)Activator.CreateInstance(typeof(LogLineList), logFileType));
 }