Mathematical Equality for Func<int, int>
问题 I have a Sequence type that implements ISequence . ISequence implements IEnumerable<Element> where Element is another custom type. Currently, my Sequence type stores the instructions for generating the N-th term of a sequence as a Func<int, int> . This is convenient because it allows me to call NTerm(int n) with a simple call to the Func and to create Sequence s with a lambda. I would like to avoid changing that approach. I would like to check equality of two Sequence objects based on