/// <summary> /// Serializes a PropertyItem into a string blob. /// </summary> /// <param name="pi">The PropertyItem to serialize.</param> /// <returns>A string that may be later deserialized using DeserializePropertyItem.</returns> /// <remarks> /// Note to implementors: The format for the serialized data is intentionally opaque for programmatic users /// of this class. However, since this data goes into .PDN files, it must be carefully maintained. See /// the PropertyItem2 class for details. /// </remarks> public static string SerializePropertyItem(PropertyItem pi) { ImageMetadata pi2 = ImageMetadata.FromPropertyItem(pi); return(pi2.ToBlob()); }