Table of Contents

Method CompareByName

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CompareByName(EventInfo, EventInfo)

Compares two specified EventInfo objects by their names and returns an integer that indicates their relative position in the sort order.

public static int CompareByName(EventInfo x, EventInfo y)

Parameters

x EventInfo

First item to compare.

y EventInfo

Second item to compare.

Returns

int

A 32-bit signed integer that indicates the relationship between the two comparands. Result value less than 0 means that x precedes y in the sort order. Result value equal to 0 means x occurs in the same position as y in the sort order. Result value greater than 0 means that x follows y in the sort order.

CompareByName(PropertyInfo, PropertyInfo)

Compares two specified PropertyInfo objects by their names and returns an integer that indicates their relative position in the sort order.

public static int CompareByName(PropertyInfo x, PropertyInfo y)

Parameters

x PropertyInfo

First item to compare.

y PropertyInfo

Second item to compare.

Returns

int

A 32-bit signed integer that indicates the relationship between the two comparands. Result value less than 0 means that x precedes y in the sort order. Result value equal to 0 means x occurs in the same position as y in the sort order. Result value greater than 0 means that x follows y in the sort order.