/// <summary>
 /// Always throws <see cref="NotSupportedException"/> - this time zone cannot be written to a <see cref="DateTimeZoneWriter"/>.
 /// </summary>
 internal override void Write(DateTimeZoneWriter writer)
 {
     throw new NotSupportedException();
 }
Exemple #2
0
 /// <summary>
 /// Writes the time zone to the specified writer. Used within ZoneInfoCompiler.
 /// </summary>
 /// <param name="writer">The writer to write to.</param>
 internal abstract void Write(DateTimeZoneWriter writer);
 private void MakeOutput()
 {
     memory = new MemoryStream();
     timeZoneWriter = new DateTimeZoneCompressionWriter(memory);
 }
 /// <summary>
 /// Writes the time zone to the specified writer.
 /// </summary>
 /// <param name="writer">The writer to write to.</param>
 internal override void Write(DateTimeZoneWriter writer)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     writer.WriteTimeZone(timeZone);
 }