AjScript.ObjectUtilities.GetIndexedValue C# (CSharp) Méthode

GetIndexedValue() private static méthode

private static GetIndexedValue ( IDictionary dictionary, object indexes ) : object
dictionary IDictionary
indexes object
Résultat object
        private static object GetIndexedValue(IDictionary dictionary, object[] indexes)
        {
            if (indexes.Length != 1)
                throw new InvalidOperationException("Invalid number of subindices");

            return dictionary[indexes[0]];
        }

Same methods

ObjectUtilities::GetIndexedValue ( IList list, object indexes ) : object
ObjectUtilities::GetIndexedValue ( System array, object indexes ) : object
ObjectUtilities::GetIndexedValue ( object obj, object indexes ) : object