namespace VideoBrowserTestApp.Helpers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
///
/// Defines the .
///
public static class ReflectionHelper
{
#region Methods
///
/// The GetInstances.
///
/// .
/// The .
public static IList GetInstances()
{
return (from t in Assembly.GetExecutingAssembly().GetTypes()
where t.BaseType == (typeof(T)) && t.GetConstructor(Type.EmptyTypes) != null
select (T)Activator.CreateInstance(t)).ToList();
}
#endregion Methods
}
}