Quick Question – Long Function ‘Paths’

I have a function that needs calling a lot, but it has a long name and path (not sure if this is the right word) like this:

API.Object.PropertyList.FirstOrDefault(blah)

Is it possible to neatly make this whole thing (minus 'blah') into another, shorter function so that I could just type Function(blah) instead?

by MonkeysSA via /r/csharp

Leave a Reply