CatenaLogic.Windows.Presentation.WebcamPlayer.FilterInfo.CompareTo C# (CSharp) Method

CompareTo() public method

Compares the current object to another object
public CompareTo ( object value ) : int
value object Value to compare the current object to
return int
        public int CompareTo(object value)
        {
            // Get the object as filter info
            FilterInfo f = (FilterInfo) value;

            // Check if we have a valid object
            if (f == null)
            {
                // No, so different
                return 1;
            }

            // Valid object, compare the names
            return (Name.CompareTo(f.Name));
        }