コード例 #1
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 ArrayList();
         }
         long vt = ex.VariantType;
         if (!unsupportedMessage.Contains(vt))
         {
             Console.Error.WriteLine(ex.Message);
             unsupportedMessage.Add(vt);
         }
     }
 }
コード例 #2
0
ファイル: VariantSupport.cs プロジェクト: 89sos98/npoi
 /// <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);
         }
     }
 }