Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
Array Class
Array Methods

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Array..::.BinarySearch Method

Searches a one-dimensional sorted Array for a value, using a binary search algorithm.

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(Array, Object)Searches an entire one-dimensional sorted Array for a specific element, using the IComparable interface implemented by each element of the Array and by the specified object.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch<(Of <(T>)>)(array<T>[]()[], T)Searches an entire one-dimensional sorted Array for a specific element, using the IComparable<(Of <(T>)>) generic interface implemented by each element of the Array and by the specified object.
Public methodStatic memberBinarySearch(Array, Object, IComparer)Searches an entire one-dimensional sorted Array for a value using the specified IComparer interface.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch<(Of <(T>)>)(array<T>[]()[], T, IComparer<(Of <(T>)>))Searches an entire one-dimensional sorted Array for a value using the specified IComparer<(Of <(T>)>) generic interface.
Public methodStatic memberBinarySearch(Array, Int32, Int32, Object)Searches a range of elements in a one-dimensional sorted Array for a value, using the IComparable interface implemented by each element of the Array and by the specified value.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch<(Of <(T>)>)(array<T>[]()[], Int32, Int32, T)Searches a range of elements in a one-dimensional sorted Array for a value, using the IComparable<(Of <(T>)>) generic interface implemented by each element of the Array and by the specified value.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(Array, Int32, Int32, Object, IComparer)Searches a range of elements in a one-dimensional sorted Array for a value, using the specified IComparer interface.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch<(Of <(T>)>)(array<T>[]()[], Int32, Int32, T, IComparer<(Of <(T>)>))Searches a range of elements in a one-dimensional sorted Array for a value, using the specified IComparer<(Of <(T>)>) generic interface.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker