Archive for December, 2006

Generic API ideas

We’ve been talking about some new ways to improve the ECO API using generics:T IEcoServiceProvider.GetEcoService<T>() This would allow you to retrieve e.g. the IOclService using serviceProvider.GetEcoService<IOclService>() rather than the more awkward (IOclService)serviceProvider.GetEcoService(typeof(IOclService)). Similarly,IList<T> IExtentService.AllInstances<T>() allows for code like foreach (Person p in extentService.AllInstances<Person>()). I like it. It leads to code that is easier to read and […]

Posted by Anders Ivner archive on December 13th, 2006 under Uncategorized | 5 Comments »


Server Response from: dnrh2.codegear.com

 
© Copyright 2008 Embarcadero Technologies, Inc. All Rights Reserved. Contact Us  |   Site Map  |   Legal Notices  |   Privacy Policy  |   Report Software Piracy