Eric Anastas Eric Anastas - 1 year ago 63
C# Question

How do I name an interface when the base word starts with an I?

I want to create an interface for "Items". Typicaly I would name an interface by adding and "I" prefix to a base word. But in this case my base word already starts with an I. Here are a couple ideas I've had

  • IItem: Two I's

  • Iitem : Vary the case

  • ItemInterface: Skip the I prefix and write out Interface

What looks the best? Has anyone else run into this problem. If so what did you do?

Answer Source

Although hard to read, IItem would be in line with some existing "II" interfaces:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download