Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
List(T) Class
List(T) 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
List<(Of <(T>)>)..::.BinarySearch Method

Uses a binary search algorithm to locate a specific element in the sorted List<(Of <(T>)>) or a portion of it.

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(T)Searches the entire sorted List<(Of <(T>)>) for an element using the default comparer and returns the zero-based index of the element.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(T, IComparer<(Of <(T>)>))Searches the entire sorted List<(Of <(T>)>) for an element using the specified comparer and returns the zero-based index of the element.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinarySearch(Int32, Int32, T, IComparer<(Of <(T>)>))Searches a range of elements in the sorted List<(Of <(T>)>) for an element using the specified comparer and returns the zero-based index of the element.
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