[This is preliminary documentation and is subject to change.]

Compares two priority items.

Namespace: org.critterai
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public sealed class PriorityComparer<T> : IComparer<T>
where T : IPriorityItem
Public NotInheritable Class PriorityComparer(Of T As IPriorityItem) _
	Implements IComparer(Of T)
generic<typename T>
where T : IPriorityItem
public ref class PriorityComparer sealed : IComparer<T>

Type Parameters

T
The type of the priority item.

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
PriorityComparer<(Of <(<'T>)>)>(Boolean)
Constructor.
Ascending
True if the comparison is for an ascending sort.
Compare(T, T)
Compares two priority items and returns a value indicating whether one is less than, equal to, or greater than the other.

Inheritance Hierarchy

System..::..Object
  org.critterai..::..PriorityComparer<(Of <(<'T>)>)>

See Also