PowerArgs.CommandLineAction.Equals C# (CSharp) Method

Equals() public method

Determines if 2 actions are the same based on their source.
public Equals ( object obj ) : bool
obj object The other action
return bool
        public override bool Equals(object obj)
        {
            var other = obj as CommandLineAction;
            if (other == null) return false;

            if (this.Source == other.Source)
            {
                return true;
            }

            // TODO - improve robustness of this equals

            return false;
        }