Original Post
Hello, I'm working on a little utility lib to use the XInput library in .NET and I've run into a little problem. The XInput library provides support for gamepad controllers (like the XBox360 controller for Windows), so I thought it would be a nice design to expose these like: XInput.Controller[ index ] But unfortunately C# (or rather .NET?) doesn't seem to support static indexers. Is there any way I can trick C# into allowing the above syntax? Overloading [] perhaps, as it it supposedly done in C++? I know I could simply use a static method to access the controllers, but the indexers seem to be the right way to do this and I think it just looks nicer :) Thanks in advance for any help!