Select greediest non-obsolete constructor
I want TinyIoC to automatically select constructor, but I do not want TinyIoC to select a constructor marked with the ObsoleteAttribute.
Since this may break compability with current resolution behaviour, what about
Container.Register<MyClass>().IgnoreObsoleteConstructors();
or
Container.IgnoreObsoleteConstructors = true;
My suggestion is writing a customization class that TinyIoC can use to perform this type of work and others. See Autofixture for ideas or
http://blog.ploeh.dk/2009/09/22/CustomizingAType'sBuilderWithAutoFixture/ http://blog.ploeh.dk/2010/10/19/Convention-basedCustomizationswithAutoFixture/
or
https://github.com/ghostsquad/SharpZendeskApi/blob/master/SharpZendeskApi/ContractResolution/CustomizableSerializationContractResolver.cs (soon to have a home here: https://github.com/ghostsquad/Json.Net-CustomizableSerialization)