Ejemplo n.º 1
0
 /// <summary>Obtain version information.</summary>
 /// <remarks>
 /// Obtain version information. The XMPVersionInfo singleton is created the first time
 /// its requested.
 /// </remarks>
 /// <returns>Returns the version information.</returns>
 public static XMPVersionInfo GetVersionInfo()
 {
     lock (typeof(XMPMetaFactory))
     {
         if (versionInfo == null)
         {
             try
             {
                 int  major    = 5;
                 int  minor    = 1;
                 int  micro    = 0;
                 int  engBuild = 3;
                 bool debug    = false;
                 // Adobe XMP Core 5.0-jc001 DEBUG-<branch>.<changelist>, 2009 Jan 28 15:22:38-CET
                 string message = "Adobe XMP Core 5.1.0-jc003";
                 versionInfo = new _XMPVersionInfo_274(major, minor, micro, debug, engBuild, message);
             }
             catch (Exception e)
             {
                 // EMTPY, severe error would be detected during the tests
                 System.Console.Out.Println(e);
             }
         }
         return(versionInfo);
     }
 }
 /// <summary>Obtain version information.</summary>
 /// <remarks>
 /// Obtain version information. The XMPVersionInfo singleton is created the first time
 /// its requested.
 /// </remarks>
 /// <returns>Returns the version information.</returns>
 public static XMPVersionInfo GetVersionInfo()
 {
     lock (typeof(XMPMetaFactory))
     {
         if (versionInfo == null)
         {
             try
             {
                 int major = 5;
                 int minor = 1;
                 int micro = 0;
                 int engBuild = 3;
                 bool debug = false;
                 // Adobe XMP Core 5.0-jc001 DEBUG-<branch>.<changelist>, 2009 Jan 28 15:22:38-CET
                 string message = "Adobe XMP Core 5.1.0-jc003";
                 versionInfo = new _XMPVersionInfo_274(major, minor, micro, debug, engBuild, message);
             }
             catch (Exception e)
             {
                 // EMTPY, severe error would be detected during the tests
                 System.Console.Out.Println(e);
             }
         }
         return versionInfo;
     }
 }