✅ Is it possible to override ToString method for Anonymous type in C#? (Not using overriden one)
Hello guys, just wondering if it was possible to use another implementation of the
ToString
method for anonymous type.
I was just using LINQ to perform the following:
When I use a foreach and output each lesson, I have the overriden format of the ToString method.
I manage to change part of it using the following:
But just wanted to know if it's actually possible to change the ToString format again4 Replies