コード例 #1
0
ファイル: GridOperator.cs プロジェクト: rsegovia/WWCP_Core
        /// <summary>
        /// Compares two EVSE_Operator for equality.
        /// </summary>
        /// <param name="EVSE_Operator">An EVSE_Operator to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(GridOperator EVSE_Operator)
        {
            if ((Object)EVSE_Operator == null)
            {
                return(false);
            }

            return(Id.Equals(EVSE_Operator.Id));
        }
コード例 #2
0
ファイル: GridOperator.cs プロジェクト: rsegovia/WWCP_Core
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EVSE_Operator">An EVSE_Operator object to compare with.</param>
        public Int32 CompareTo(GridOperator EVSE_Operator)
        {
            if ((Object)EVSE_Operator == null)
            {
                throw new ArgumentNullException("The given EVSE_Operator must not be null!");
            }

            return(Id.CompareTo(EVSE_Operator.Id));
        }