System.TimeZoneInfo.Equals C# (CSharp) Method

Equals() public method

public Equals ( TimeZoneInfo other ) : bool
other TimeZoneInfo
return bool
		public bool Equals (TimeZoneInfo other)
		{
			if (other == null)
				return false;

			return other.Id == this.Id && HasSameRules (other);
		}

Same methods

TimeZoneInfo::Equals ( object obj ) : bool

Usage Example

Esempio n. 1
0
        private static bool IsCronTrigger(Trigger trigger, string cronExpression, TimeZoneInfo timeZone)
        {
            var cronTrigger = trigger as CronTrigger;

            return cronTrigger != null && cronTrigger.CronExpressionString == cronExpression && timeZone.Equals(cronTrigger.TimeZone);
        }
All Usage Examples Of System.TimeZoneInfo::Equals