I'm considering creating an interface and applying it to all objects in a certain namespace.
Scenario in which I would use this: I want to create a generic handler of those objects, and I'd like to enforce the generic parameter to only accept types that implement this particular interface.
Is this a bad design, or are blank interfaces acceptable?
What you are talking about doing is known as Marker Interfaces.
I've used this technique successfully in the past, but I would question whether the artificial limitation you are placing on your generic class is actually necessary. If so, then this is certainly a quick and compile checked method of accomplishing it.
Nothing wrong with them in my opinion. A lot of their strength lies in combination with (generated) partial classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With