I have a two-dimensional array, object[,] mData
I need to retrieve the index of a specific string (key) in that object array without using a loop (e.g foreach, for).
The reason why I don't want to use a loop is because I am trying to optimize a current block of code that uses a loop which causes the process to take a long time since it is managing too much data.
Is there a way to do this?
CODE
`
object [,] mData = null;  
string sKey = String.Empty;  
for (int iIndex = 0; iIndex < mData.GetUpperBound(1); iIndex++)  
{  
    if (mData[0, iIndex].Value == sKey);  
    {
       return;  
    }  
}
`
 
    