コード例 #1
0
 internal RowView(Matrix <TRowKey, TColKey, TValue> matrix, TRowKey rowKey)
 {
     if (!matrix.ContainsRowKey(rowKey))
     {
         throw new IndexOutOfRangeException(string.Format("{0} is not a row key in the matrix", rowKey));
     }
     _matrix = matrix;
     _rowKey = rowKey;
 }
コード例 #2
0
 public bool ContainsKey(TRowKey rowKey)
 {
     return(_matrix.ContainsRowKey(rowKey) && !_matrix.IsMissing(rowKey, _colKey));
 }