// Overloaded indexers!
public DataTable this[string name] { get; }
public DataTable this[string name, string tableNamespace] { get; }
public DataTable this[int index] { get; }
}
To be sure, a number of types in the base class libraries support indexer methods. Therefore,
even if your current project does not require you to build custom indexers for your classes and
structures, be aware that many types already support this syntax.
C H A P T E R 1 2
■
I N D E X E R S, O P E R ATO R S, A N D P O I N T E R S
386
8849CH12.qxd 9/26/07 11:31 AM Page 386
Do'stlaringiz bilan baham: |