private void initExclusive(DateTimeValue dateValue) { if (!(dateValue is PersianDateValue) && persian != null) { dateValue.Read(persian.ToDateTime()); HasValue = true; return; } if (!(dateValue is GregorianDateValue) && gregorian != null) { dateValue.Read(gregorian.ToDateTime()); HasValue = true; return; } if (!(dateValue is HijriDateValue) && hijri != null) { dateValue.Read(hijri.ToDateTime()); HasValue = true; return; } }
private void initExclusive(DateTimeValue dateValue) { if (!(dateValue is GregorianDateValue) && gregorian != null) { dateValue.Read(gregorian.ToDateTime()); HasValue = true; return; } if (!(dateValue is PersianDateValue) && persian != null) { dateValue.Read(persian.ToDateTime()); HasValue = true; return; } if (!(dateValue is HijriDateValue) && hijri != null) { dateValue.Read(hijri.ToDateTime()); HasValue = true; return; } if (!(dateValue is HebrewDateValue) && hebrew != null) { dateValue.Read(hebrew.ToDateTime()); HasValue = true; return; } if (!(dateValue is JulianDateValue) && julian != null) { dateValue.Read(julian.ToDateTime()); HasValue = true; return; } if (!(dateValue is KoreanDateValue) && korean != null) { dateValue.Read(korean.ToDateTime()); HasValue = true; return; } if (!(dateValue is JapaneseDateValue) && japanese != null) { dateValue.Read(japanese.ToDateTime()); HasValue = true; return; } if (!(dateValue is TaiwanDateValue) && taiwan != null) { dateValue.Read(taiwan.ToDateTime()); HasValue = true; return; } if (!(dateValue is KoreanLunisolarDateValue) && koreanLunisolar != null) { dateValue.Read(koreanLunisolar.ToDateTime()); HasValue = true; return; } if (!(dateValue is JapaneseLunisolarDateValue) && japaneseLunisolar != null) { dateValue.Read(japaneseLunisolar.ToDateTime()); HasValue = true; return; } if (!(dateValue is TaiwanLunisolarDateValue) && taiwanLunisolar != null) { dateValue.Read(taiwanLunisolar.ToDateTime()); HasValue = true; return; } if (!(dateValue is ChineseLunisolarDateValue) && chineseLunisolar != null) { dateValue.Read(chineseLunisolar.ToDateTime()); HasValue = true; return; } }