A
almurph
Hi everyone,
I am trying to create an indexer to a jagged array but can't seem to
be able to do it. I am trying the following:
**** BEGIN SUSPECT JAGGED ARRAY INDEXER CODE*****
private int[][] AttributeValue;
public int this[int row, int column]
{
get
{
return AttributeValue[row][column];
}
set
{
AttributeValue[row][column] = value;
}
}
**** END SUSPECT JAGGED ARRAY INDEXER CODE*****
I'm not sure about it. Would appreciate any comments/suggestions/
corrections/code-samples that you may be able to offer.
Thanks,
Al
I am trying to create an indexer to a jagged array but can't seem to
be able to do it. I am trying the following:
**** BEGIN SUSPECT JAGGED ARRAY INDEXER CODE*****
private int[][] AttributeValue;
public int this[int row, int column]
{
get
{
return AttributeValue[row][column];
}
set
{
AttributeValue[row][column] = value;
}
}
**** END SUSPECT JAGGED ARRAY INDEXER CODE*****
I'm not sure about it. Would appreciate any comments/suggestions/
corrections/code-samples that you may be able to offer.
Thanks,
Al