/// <summary>
 /// Writes a warning To System.err that a variant type Is
 /// unsupported by HPSF. Such a warning is written only once for each variant
 /// type. Log messages can be turned on or off by
 /// </summary>
 /// <param name="ex">The exception To log</param>
 public static void WriteUnsupportedTypeMessage
     (UnsupportedVariantTypeException ex)
 {
     if (IsLogUnsupportedTypes)
     {
         if (unsupportedMessage == null)
         {
             unsupportedMessage = new ArrayList();
         }
         long vt = ex.VariantType;
         if (!unsupportedMessage.Contains(vt))
         {
             Console.Error.WriteLine(ex.Message);
             unsupportedMessage.Add(vt);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Writes a warning To System.err that a variant type Is
 /// unsupported by HPSF. Such a warning is written only once for each variant
 /// type. Log messages can be turned on or off by
 /// </summary>
 /// <param name="ex">The exception To log</param>
 public static void WriteUnsupportedTypeMessage
     (UnsupportedVariantTypeException ex)
 {
     if (IsLogUnsupportedTypes)
     {
         if (unsupportedMessage == null)
             unsupportedMessage = new List<long>();
         long vt = ex.VariantType;
         if (!unsupportedMessage.Contains(vt))
         {
             Console.Error.WriteLine(ex.Message);
             unsupportedMessage.Add(vt);
         }
     }
 }