I am creating a library that will be widely used by various applications. You can say that it is a kind of public library or SDK.
I am currently working on a function that takes a list of points, performs some calculations at these points, and then returns a list of updated points. So my question is what should I use as the return type and in my parameters. IList , IEnumerable or Collection .
So this is the function. I do not know what the user will do with the exit. How the user uses it, on him. So what should be the best option to use here.
public static IEnumerable<Point2D> PeformSomeCalculation(IEnumerable<Point2D> points) {
source share