Command.CreateTemplates C# (CSharp) 메소드

CreateTemplates() 공개 정적인 메소드

public static CreateTemplates ( ) : List
리턴 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();
    }