예제 #1
0
 /// <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();
 }
예제 #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);
예제 #3
0
 private void MakeOutput()
 {
     memory = new MemoryStream();
     timeZoneWriter = new DateTimeZoneCompressionWriter(memory);
 }
예제 #4
0
 /// <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);
 }