Quantcast
Channel: User Sinatr - Stack Overflow
Viewing all articles
Browse latest Browse all 615

Comment by Sinatr on How to do a double indexer for an own class object in C#

$
0
0
What are going to do with mymatrix[index1][index2] ? Is it just a value or you intend to access mymatrix internals? Consider to return a wrapper from indexer, which takes current main instance and extend it with needed functionality, e.g. matrix[i] -> row, row[i] -> cell, etc.

Viewing all articles
Browse latest Browse all 615

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>