private static void WriteGuidArray(MsgSubStorageWriter writer, TnefPropertyTag propertyTag, object value)
 {
     Guid[] arrayValue = value as Guid[];
     if (arrayValue == null)
     {
         throw new InvalidOperationException(MsgStorageStrings.InvalidValueType(typeof(Guid[]), value.GetType()));
     }
     MsgStorageRulesTable.WriteArray(writer, propertyTag, arrayValue.Length, delegate(BinaryWriter binaryWriter, int index)
     {
         binaryWriter.Write(arrayValue[index].ToByteArray());
     });
 }
 private static void WriteSysTimeArray(MsgSubStorageWriter writer, TnefPropertyTag propertyTag, object value)
 {
     DateTime[] arrayValue = value as DateTime[];
     if (arrayValue == null)
     {
         throw new InvalidOperationException(MsgStorageStrings.InvalidValueType(typeof(DateTime[]), value.GetType()));
     }
     MsgStorageRulesTable.WriteArray(writer, propertyTag, arrayValue.Length, delegate(BinaryWriter binaryWriter, int index)
     {
         long value2 = 0L;
         try
         {
             value2 = arrayValue[index].ToFileTimeUtc();
         }
         catch (ArgumentOutOfRangeException)
         {
             value2 = 0L;
         }
         binaryWriter.Write(value2);
     });
 }