How do I search a multi-dimensional array?
问题 In C#, Array.Find<T>(arrayName, value); searches a one dimensional array. Is there anyway to do this for a multidimensional array (e.g. myArray[,,] )? 回答1: Working with Excel and VSTO, I deal with multidimensional arrays all the time. There are no built-in functions for multidimensional array like Array.Find(). You basically have two choices: create your own helper methods and implement a generic search pattern there, or generate a list of domain objects correlating to the contents of the