Share via


NamespaceComparer Class

Definition

A custom string comparer to sort using statements to have System prefixed namespaces first.

public class NamespaceComparer : System.Collections.Generic.IComparer<string>
type NamespaceComparer = class
    interface IComparer<string>
Public Class NamespaceComparer
Implements IComparer(Of String)
Inheritance
NamespaceComparer
Implements

Constructors

NamespaceComparer()

Methods

Compare(String, String)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Applies to