void CheckZone(FloatingTimeSpan timespan)
 {
     if (_zone != timespan.Zone)
     {
         throw new ArgumentException("Cannot relate IndependentDateTime to FloatingTimeSpan with different time zone");
     }
 }
示例#2
0
 protected void CheckZone(FloatingTimeSpan other)
 {
     if (_zone != other._zone)
     {
         throw new ArgumentException("Cannot relate FloatingTimeSpan instances from two different time zones");
     }
 }
 protected void CheckZone(FloatingTimeSpan other)
 {
     if (_zone != other._zone)
         throw new ArgumentException("Cannot relate FloatingTimeSpan instances from two different time zones");
 }