BadScript 2
Loading...
Searching...
No Matches
BadLinqQueryTakeLastCommand.cs
Go to the documentation of this file.
1using System.Collections;
2
4
9{
11 public BadLinqQueryTakeLastCommand() : base(true, false, "TakeLast") { }
12
14 public override IEnumerable Run(BadLinqQueryCommandData data)
15 {
16 return data.Data.TakeLast(int.Parse(data.Argument!));
17 }
18}
Implements the Command Data for the BadLinqQuery.
Implements an Abstract Command for the BadLinqQuery.