Not sure about other IDEs, but Visual Studio pretty much does exactly this and more (for C# anyway). You can pretty much design an entire class by first _using_ it and then use Intellisense to generate the class/method/property stubs all with the correct types.