Beispiel #1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EnergySource1">An energy source.</param>
        /// <param name="EnergySource2">Another energy source.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(EnergySource EnergySource1,
                                         EnergySource EnergySource2)

        => EnergySource1.CompareTo(EnergySource2) > 0;
Beispiel #2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="EnergySource1">An energy source.</param>
        /// <param name="EnergySource2">Another energy source.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(EnergySource EnergySource1,
                                          EnergySource EnergySource2)

        => EnergySource1.Equals(EnergySource2);