private ReportData SetPartnerInfo(ReportData reportData, string partnerPrefix, Partner partner)
        {
            PropertyInfo propertyInfo = reportData.GetType().GetProperty(partnerPrefix + "IDType");
...

C# Cleaning up this method

by zsysop.myopenid.com, April 13, 2011 20:38, 2 refactorings, tagged with c# reflection

Is there any cleaner way to...

Eaeb97b81092455b2b39fd74a04304ef Talk
Type type1 = SomeMethodThatReturnsAType();
Type type2 = SomeOtherMethodThatReturnsAType();

...

C# C# Dynamic casting?

by https://www.google.com/accounts/o8/id?id=AItOawlUTCKCTimaUNX4sQ5LTqV5Mz8q1DapzIQ, June 30, 2010 20:00, 1 refactoring, tagged with c# reflection

How can I make this work?

55502f40dc8b7c769880b10874abc9d0 Talk