The third way is much more comfortable to use. I suggest to request optimization of it into the same IL the first one produces.

By on 5/31/2009 11:55 PM ()

The first way generates about half the amount of IL as the third way. Both 2 and 3 have a newobj. I'd wager that #1 will likely be the fastest. There's probably not _too_ much difference between 2 and 3. But, you'd have to benchmark on your target platform and runtime to make sure.

By on 5/31/2009 7:22 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper