ProjNet.CoordinateSystems.Projection.EqualParams C# (CSharp) Method

EqualParams() public method

Checks whether the values of this instance is equal to the values of another instance. Only parameters used for coordinate system are used for comparison. Name, abbreviation, authority, alias and remarks are ignored in the comparison.
public EqualParams ( object obj ) : bool
obj object
return bool
        public override bool EqualParams(object obj)
        {
            if (!(obj is Projection))
                return false;
            Projection proj = obj as Projection;
            if (proj.NumParameters != this.NumParameters)
                return false;
            for (int i = 0; i < _Parameters.Count; i++)
            {
                ProjectionParameter param = GetParameter(proj.GetParameter(i).Name);
                if (param == null)
                    return false;
                if (param.Value != proj.GetParameter(i).Value)
                    return false;
            }
            return true;
        }