Command.CreateTemplates C# (CSharp) Method

CreateTemplates() public static method

public static CreateTemplates ( ) : List
return List
    public static List<Command> CreateTemplates()
    {
        var commands = from type in Assembly.GetCallingAssembly().GetTypes()
                       where type.IsSubclassOf(typeof(Command))
                       select type.GetMethod("CreateTemplate").Invoke(null, null) as Command;
        return commands.ToList();
    }