> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.TimeZoneRuleDictionary

# \<a id="SuperOffice\_WebApi\_Data\_TimeZoneRuleDictionary">\</a> Class TimeZoneRuleDictionary

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Serializable dictionary.
This class works as a regular dictionary. The only restriction is that the string is a value type

```csharp theme={null}
public class TimeZoneRuleDictionary : Dictionary<DateTime, TimeZoneRule>, IDictionary<DateTime, TimeZoneRule>, ICollection<KeyValuePair<DateTime, TimeZoneRule>>, IDictionary, ICollection, IReadOnlyDictionary<DateTime, TimeZoneRule>, IReadOnlyCollection<KeyValuePair<DateTime, TimeZoneRule>>, IEnumerable<KeyValuePair<DateTime, TimeZoneRule>>, IEnumerable, ISerializable, IDeserializationCallback
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Dictionary\<DateTime, TimeZoneRule\&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2) ←
[TimeZoneRuleDictionary](SuperOffice.WebApi.Data.TimeZoneRuleDictionary.md)

#### Implements

[IDictionary\<DateTime, TimeZoneRule\&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2),
[ICollection\<KeyValuePair\<DateTime, TimeZoneRule\&gt;\&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1),
[IDictionary](https://learn.microsoft.com/dotnet/api/system.collections.idictionary),
[ICollection](https://learn.microsoft.com/dotnet/api/system.collections.icollection),
[IReadOnlyDictionary\<DateTime, TimeZoneRule\&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary-2),
[IReadOnlyCollection\<KeyValuePair\<DateTime, TimeZoneRule\&gt;\&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1),
[IEnumerable\<KeyValuePair\<DateTime, TimeZoneRule\&gt;\&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1),
[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable),
[ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable),
[IDeserializationCallback](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.ideserializationcallback)

#### Inherited Members

[Dictionary\<DateTime, TimeZoneRule\&gt;.Add(DateTime, TimeZoneRule)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.add),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Clear()](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.clear),
[Dictionary\<DateTime, TimeZoneRule\&gt;.ContainsKey(DateTime)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.containskey),
[Dictionary\<DateTime, TimeZoneRule\&gt;.ContainsValue(TimeZoneRule)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.containsvalue),
[Dictionary\<DateTime, TimeZoneRule\&gt;.GetEnumerator()](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.getenumerator),
[Dictionary\<DateTime, TimeZoneRule\&gt;.GetObjectData(SerializationInfo, StreamingContext)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.getobjectdata),
[Dictionary\<DateTime, TimeZoneRule\&gt;.OnDeserialization(object)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.ondeserialization),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Remove(DateTime)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.remove#system-collections-generic-dictionary-2-remove\(-0\)),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Remove(DateTime, out TimeZoneRule)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.remove#system-collections-generic-dictionary-2-remove\(-0-1@\)),
[Dictionary\<DateTime, TimeZoneRule\&gt;.TryGetValue(DateTime, out TimeZoneRule)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.trygetvalue),
[Dictionary\<DateTime, TimeZoneRule\&gt;.TryAdd(DateTime, TimeZoneRule)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.tryadd),
[Dictionary\<DateTime, TimeZoneRule\&gt;.EnsureCapacity(int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.ensurecapacity),
[Dictionary\<DateTime, TimeZoneRule\&gt;.TrimExcess()](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.trimexcess#system-collections-generic-dictionary-2-trimexcess),
[Dictionary\<DateTime, TimeZoneRule\&gt;.TrimExcess(int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.trimexcess#system-collections-generic-dictionary-2-trimexcess\(system-int32\)),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Comparer](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.comparer),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Count](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.count),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Keys](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.keys),
[Dictionary\<DateTime, TimeZoneRule\&gt;.Values](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.values),
[Dictionary\<DateTime, TimeZoneRule\&gt;.this\[DateTime\]](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.item),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### \<a id="SuperOffice\_WebApi\_Data\_TimeZoneRuleDictionary\_\_ctor">\</a> TimeZoneRuleDictionary()

Default constructor

```csharp theme={null}
public TimeZoneRuleDictionary()
```

## Methods

### \<a id="SuperOffice\_WebApi\_Data\_TimeZoneRuleDictionary\_ToString\_System\_String\_">\</a> ToString(string)

```csharp theme={null}
public string ToString(string prefix)
```

#### Parameters

`prefix` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)


## Related topics

- [SuperOffice.WebApi.Data.TimeZoneData](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZoneData.md)
- [SuperOffice.WebApi.Data.TimeZoneRule](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZoneRule.md)
- [SuperOffice.WebApi.Agents.TimeZoneAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TimeZoneAgent.md)
- [SuperOffice.WebApi.Agents.ITimeZoneAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITimeZoneAgent.md)
- [SuperOffice.WebApi.Data](/en/api/reference/webapi/SuperOffice.WebApi.Data.md)
- [SuperOffice.WebApi.Data.TimeZone TimeOfLastTimeZoneUpdateRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZone_TimeOfLastTimeZoneUpdateRequest.md)
