Hi,
How would I return a List<Transaction> like this? isPutCall(Transaction) is just a boolean that returns true or false.
What I am trying to do is get a List<Transaction> from "allTransactions" that match the put/call criteria, but the first line errors. I am new to C# and I see many examples around linq statements, and think I am missing a small addition below?
How would I return a List<Transaction> like this? isPutCall(Transaction) is just a boolean that returns true or false.
What I am trying to do is get a List<Transaction> from "allTransactions" that match the put/call criteria, but the first line errors. I am new to C# and I see many examples around linq statements, and think I am missing a small addition below?
C#:
public List<Transaction> FilterTransactions(List<Transaction> allTransactions)
{
List<Transaction> options = allTransactions.Select(t => isPutCall(t));
return options;
}