9
If I'm using generics, like in this sample case, is there a way to shorten the syntax so I don't have to repeatedly type "CompanyLookupData"?
Func<CompanyLookupData, CompanyLookupData, bool> DELCompareNonKeyFieldsCompany =
new Func<CompanyLookupData, CompanyLookupData, bool>
(CompanyLookupData.HasIdenticalNonKeyFieldsTo);
I had tried to do Type t = typeof(CopmanyLookupData), and use t in all of the locations, but that doesn't appear to work.
PS: while I'm open to a cleaner way of doing exactly what's shown, I'm more interested in a way to make generics syntax more concise in general.