Exemple #1
0
        /**
         * Print the content of an XmpMeta object a headline and its name.
         * @param meta an <code>XmpMeta</code> object
         * @param title the headline
         */
        private void PrintXmpMeta(IXmpMeta meta, string title)
        {
            var name = meta.GetObjectName();

            if (!string.IsNullOrEmpty(name))
            {
                _log.WriteLine("{0} (Name: '{1}'):", title, name);
            }
            else
            {
                _log.WriteLine("{0}:", title);
            }
            _log.WriteLine(meta.DumpObject());
        }
        // ---------------------------------------------------------------------------------------------
        // Utilities for this example
        // ---------------------------------------------------------------------------------------------

        /**
         * Print the content of an XmpMeta object a headline and its name.
         * @param meta an <code>XmpMeta</code> object
         * @param title the headline
         */
        private static void printXmpMeta(IXmpMeta meta, string title)
        {
            string name = meta.GetObjectName();

            if (!string.IsNullOrEmpty(name))
            {
                log.WriteLine("{0} (Name: '{1}'):", title, name);
            }
            else
            {
                log.WriteLine("{0}:", title);
            }
            log.WriteLine(meta.DumpObject());
            log.WriteLine();
        }
 // ---------------------------------------------------------------------------------------------
 // Utilities for this example
 // ---------------------------------------------------------------------------------------------
 /**
  * Print the content of an XmpMeta object a headline and its name.
  * @param meta an <code>XmpMeta</code> object
  * @param title the headline
  */
 private static void printXmpMeta(IXmpMeta meta, string title)
 {
     string name = meta.GetObjectName();
     if (!string.IsNullOrEmpty(name))
     {
         log.WriteLine("{0} (Name: '{1}'):", title, name);
     }
     else
     {
         log.WriteLine("{0}:", title);
     }
     log.WriteLine(meta.DumpObject());
     log.WriteLine();
 }