sevenalive Posted April 27, 2006 Share Posted April 27, 2006 I am using the FileInfo[] array class and i need to sort the array and binary search ithere is my codeFileInfo[] destinationinfo = new DirectoryInfo(destination).GetFiles();FileInfo[] sourceInfo = new DirectoryInfo(source).GetFiles();Please notice i am trimming the array and only getting the dimensions of GetFilesI need to sort and search by the Name Property.Can you guys post me code on how to do that? Link to comment Share on other sites More sharing options...
Zxian Posted April 30, 2006 Share Posted April 30, 2006 Binary search should be fairly easy to implement. I don't have .Net 2005 installed here, but the general premise should be the same regardless of coding language. You can find the general algorithm here. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now