public void CreateDerivedXMPTypes()
        {
            //ExStart:CreateXMPGuid
            // init new C# struct Guid
            Guid guid = Guid.NewGuid();

            // create xmp guid using C# struct
            XmpGuid xmpGuid = new XmpGuid(guid);

            // create xmp guid using it's string representation
            XmpGuid xmpGuid2 = new XmpGuid(guid.ToString());
            //ExEnd:CreateXMPGuid


            //ExStart:CreateRational
            int numerator   = 1;
            int denominator = 10;

            // create xmp rational
            Rational rational = new Rational(numerator, denominator);

            // float value should be 0.1
            float value = rational.FloatValue;
            //ExEnd:CreateRational


            //ExStart:CreateLanguageAlternative
            // init LangAlt with default value
            LangAlt langAlt = new LangAlt("XMP - Extensible Metadata Platform");

            // add value for en-us language
            langAlt.AddLanguage("en-us", "XMP - Extensible Metadata Platform");

            // add value for French language
            langAlt.AddLanguage("fr", "XMP - Une Platforme Extensible pour les Métadonnées");
            //ExEnd:CreateLanguageAlternative
        }
        public void CreateDerivedXMPTypes()
        {
            //ExStart:CreateXMPGuid
            // init new C# struct Guid
            Guid guid = Guid.NewGuid();

            // create xmp guid using C# struct
            XmpGuid xmpGuid = new XmpGuid(guid);

            // create xmp guid using it's string representation
            XmpGuid xmpGuid2 = new XmpGuid(guid.ToString());
            //ExEnd:CreateXMPGuid
            

            //ExStart:CreateRational
            int numerator = 1;
            int denominator = 10;

            // create xmp rational
            Rational rational = new Rational(numerator, denominator);

            // float value should be 0.1
            float value = rational.FloatValue;
            //ExEnd:CreateRational

            
            //ExStart:CreateLanguageAlternative
            // init LangAlt with default value
            LangAlt langAlt = new LangAlt("XMP - Extensible Metadata Platform");

            // add value for en-us language
            langAlt.AddLanguage("en-us", "XMP - Extensible Metadata Platform");

            // add value for French language
            langAlt.AddLanguage("fr", "XMP - Une Platforme Extensible pour les Métadonnées");
            //ExEnd:CreateLanguageAlternative

        }