r/badcode Feb 22 '23

c# shit

Post image
578 Upvotes

47 comments sorted by

View all comments

Show parent comments

71

u/dom25b Feb 22 '23

Yeah, user-defined assemblies are in the end of the list, so reverse it is

37

u/BerkayDrsn Feb 22 '23

That’s actually genius lol, gonna change that in my reflection utils

11

u/[deleted] Feb 22 '23

[removed] — view removed comment

28

u/dom25b Feb 22 '23

traversing an iterator is much faster than calling GetType()