User Tools

Site Tools


notes:csharp:indexers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
notes:csharp:indexers [2018/12/03]
leszek
notes:csharp:indexers [2018/12/03]
leszek
Line 9: Line 9:
   * can have separate access restrictions for setters and getters   * can have separate access restrictions for setters and getters
   * single-dimension indexers with numeric parameters can participate in data binding   * single-dimension indexers with numeric parameters can participate in data binding
 +
 +Keep in mind that when the JIT compiler inline property accessors, the performance of data members and properties is the same.
  
 Example: Implement an indexer: Example: Implement an indexer: