/ Published in: C#
This technique can convert a list of one type into a list of another in a single line given and instance to instance conversion method to be passed to the delegate constructor.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public class LendingRates { public List<BLRate> GetLendingRates() { . . . List<DLRate> ldlr = dlObject.GetLendingRates(date); return lblr } . . . public static BLRate RateToRateConverterMethod(DLRate dr) { } }
URL: http://msdn.microsoft.com/en-us/library/73fe8cwf(VS.80).aspx