public void CreateBasicXMPTypes() { //ExStart:CreateXMPBoolean // create XmpBoolean from string XmpBoolean xmpBoolean = new XmpBoolean("True"); // create XmpBoolean using .NET bool XmpBoolean xmpBoolean2 = new XmpBoolean(true); // values should be equal if (xmpBoolean.Value == xmpBoolean2.Value) { Console.WriteLine("Equals!"); } //ExEnd:CreateXMPBoolean //ExStart:CreateXMPDate // create date from string XmpDate date1 = new XmpDate("2016-01-10"); // create the same date using.NET DateTime XmpDate date2 = new XmpDate(new DateTime(2016, 01, 10)); //ExEnd:CreateXMPDate }
public void CreateBasicXMPTypes() { //ExStart:CreateXMPBoolean // create XmpBoolean from string XmpBoolean xmpBoolean = new XmpBoolean("True"); // create XmpBoolean using .NET bool XmpBoolean xmpBoolean2 = new XmpBoolean(true); // values should be equal if (xmpBoolean.Value == xmpBoolean2.Value) { Console.WriteLine("Equals!"); } //ExEnd:CreateXMPBoolean //ExStart:CreateXMPDate // create date from string XmpDate date1 = new XmpDate("2016-01-10"); // create the same date using.NET DateTime XmpDate date2 = new XmpDate(new DateTime(2016, 01, 10)); //ExEnd:CreateXMPDate }