1 instantiation of AdjustmentRule
mscorlib (1)
system\timezoneinfo.cs (1)
3103
AdjustmentRule rule = new
AdjustmentRule
();
67 references to AdjustmentRule
mscorlib (67)
system\timezoneinfo.cs (67)
67
private
AdjustmentRule
[] m_adjustmentRules;
249
AdjustmentRule
rule = currentYear.m_adjustmentRules == null ? null : currentYear.m_adjustmentRules[0];
265
public
AdjustmentRule
rule;
266
public OffsetAndRule(int year, TimeSpan offset,
AdjustmentRule
rule) {
323
public
AdjustmentRule
[] GetAdjustmentRules() {
325
return new
AdjustmentRule
[0];
328
return (
AdjustmentRule
[])m_adjustmentRules.Clone();
348
AdjustmentRule
rule = GetAdjustmentRuleForTime(adjustedTime);
396
AdjustmentRule
rule = GetAdjustmentRuleForTime(adjustedTime);
526
AdjustmentRule
rule = GetAdjustmentRuleForTime(adjustedTime);
604
AdjustmentRule
rule = GetAdjustmentRuleForTime(adjustedTime);
627
AdjustmentRule
rule = GetAdjustmentRuleForTime(dateTime);
778
AdjustmentRule
sourceRule = sourceTimeZone.GetAdjustmentRuleForTime(dateTime);
993
AdjustmentRule
[] currentRules = this.m_adjustmentRules;
994
AdjustmentRule
[] otherRules = other.m_adjustmentRules;
1099
AdjustmentRule
rule = CreateAdjustmentRuleFromTimeZoneInformation(regZone, DateTime.MinValue.Date, DateTime.MaxValue.Date, zone.Bias);
1101
m_adjustmentRules = new
AdjustmentRule
[1];
1118
AdjustmentRule
[] adjustmentRules,
1125
m_adjustmentRules = (
AdjustmentRule
[])adjustmentRules.Clone();
1172
AdjustmentRule
[] adjustmentRules) {
1200
AdjustmentRule
[] adjustmentRules,
1263
m_adjustmentRules = (
AdjustmentRule
[])info.GetValue("AdjustmentRules", typeof(
AdjustmentRule
[]));
1274
private
AdjustmentRule
GetAdjustmentRuleForTime(DateTime dateTime) {
1365
static private
AdjustmentRule
CreateAdjustmentRuleFromTimeZoneInformation(Win32Native.RegistryTimeZoneInformation timeZoneInformation, DateTime startDate, DateTime endDate, int defaultBaseUtcOffset) {
1366
AdjustmentRule
rule;
1376
return rule =
AdjustmentRule
.CreateAdjustmentRule(
1403
rule =
AdjustmentRule
.CreateAdjustmentRule(
1465
static private DaylightTimeStruct GetDaylightTime(Int32 year,
AdjustmentRule
rule) {
1478
static private Boolean GetIsDaylightSavings(DateTime time,
AdjustmentRule
rule, DaylightTimeStruct daylightTime, TimeZoneInfoOptions flags) {
1538
static private Boolean GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc,
AdjustmentRule
rule, out Boolean isAmbiguousLocalDst, TimeZoneInfo zone) {
1563
AdjustmentRule
previousYearRule = zone.GetAdjustmentRuleForTime(new DateTime(daylightTime.Start.Year - 1, 12, 31));
1577
AdjustmentRule
nextYearRule = zone.GetAdjustmentRuleForTime(new DateTime(daylightTime.End.Year + 1, 1, 1));
1681
static private Boolean GetIsAmbiguousTime(DateTime time,
AdjustmentRule
rule, DaylightTimeStruct daylightTime) {
1745
static private Boolean GetIsInvalidTime(DateTime time,
AdjustmentRule
rule, DaylightTimeStruct daylightTime) {
1995
AdjustmentRule
rule = zone.GetAdjustmentRuleForTime(time);
2057
AdjustmentRule
rule;
2306
static private bool TryCreateAdjustmentRules(string id, Win32Native.RegistryTimeZoneInformation defaultTimeZoneInformation, out
AdjustmentRule
[] rules, out Exception e, int defaultBaseUtcOffset) {
2321
AdjustmentRule
rule = CreateAdjustmentRuleFromTimeZoneInformation(
2328
rules = new
AdjustmentRule
[1];
2362
AdjustmentRule
rule = CreateAdjustmentRuleFromTimeZoneInformation(dtzi, DateTime.MinValue.Date, DateTime.MaxValue.Date, defaultBaseUtcOffset);
2368
rules = new
AdjustmentRule
[1];
2375
List<
AdjustmentRule
> rulesList = new List<
AdjustmentRule
>(1);
2378
AdjustmentRule
firstRule = CreateAdjustmentRuleFromTimeZoneInformation(
2395
AdjustmentRule
middleRule = CreateAdjustmentRuleFromTimeZoneInformation(
2411
AdjustmentRule
lastRule = CreateAdjustmentRuleFromTimeZoneInformation(
2797
AdjustmentRule
[] adjustmentRules;
2931
AdjustmentRule
[] adjustmentRules,
2962
AdjustmentRule
prev = null;
2963
AdjustmentRule
current = null;
3005
sealed public class AdjustmentRule : IEquatable<
AdjustmentRule
>, ISerializable, IDeserializationCallback {
3066
public bool Equals(
AdjustmentRule
other) {
3093
static public
AdjustmentRule
CreateAdjustmentRule(
3103
AdjustmentRule
rule = new AdjustmentRule();
3115
static internal
AdjustmentRule
CreateAdjustmentRule(
3122
AdjustmentRule
rule = CreateAdjustmentRule(dateStart, dateEnd, daylightDelta, daylightTransitionStart, daylightTransitionEnd);
3581
AdjustmentRule
[] rules = zone.GetAdjustmentRules();
3585
AdjustmentRule
rule = rules[i];
3627
AdjustmentRule
[] rules = s.GetNextAdjustmentRuleArrayValue(false);
3930
private
AdjustmentRule
[] GetNextAdjustmentRuleArrayValue(Boolean canEndWithoutSeparator) {
3931
List<
AdjustmentRule
> rules = new List<
AdjustmentRule
>(1);
3935
AdjustmentRule
rule = GetNextAdjustmentRuleValue(true);
3961
private
AdjustmentRule
GetNextAdjustmentRuleValue(Boolean canEndWithoutSeparator) {
4023
AdjustmentRule
rule;
4025
rule =
AdjustmentRule
.CreateAdjustmentRule(dateStart, dateEnd, daylightDelta, daylightStart, daylightEnd, baseUtcOffsetDelta);