Possible Duplicate:
How do I overload the square-bracket operator in C#?
Basically I want to know if there is a way to achieve custom behavior for brackets similar to the SqlDataReader Object. For example with the SqlDataReader object you can use an index number "Reader[0]" which is the normal operation for brackets, or you can supply the column name "Reader["id"]". I know how to override basic operators but can not seem to find anything relating to changing bracket behavior.