OpenPetra
Free Administration Software for Non-Profits
Ict.Common.IO.YamlItemOrderComparer Class Reference

for sorting the controls, depending on Order attribute, and depth More...

Inheritance diagram for Ict.Common.IO.YamlItemOrderComparer:

Public Member Functions

int Compare (XmlNode node1, XmlNode node2)
 required method of IComparer interface More...
 

Static Public Member Functions

static int CompareNodes (XmlNode node1, XmlNode node2)
 compare two nodes; considering base nodes and depth of the node, and the order attribute More...
 

Detailed Description

for sorting the controls, depending on Order attribute, and depth

Member Function Documentation

◆ Compare()

int Ict.Common.IO.YamlItemOrderComparer.Compare ( XmlNode  node1,
XmlNode  node2 
)
inline

required method of IComparer interface

◆ CompareNodes()

static int Ict.Common.IO.YamlItemOrderComparer.CompareNodes ( XmlNode  node1,
XmlNode  node2 
)
inlinestatic

compare two nodes; considering base nodes and depth of the node, and the order attribute

Parameters
node1
node2
Returns
+1 if node1 is greater than node2, -1 if node1 is less than node2, and 0 if they are the same or identical

The documentation for this class was generated from the following file: