I am trying to access the Authors fields from a picture.
I am using System.Windows.Media.Imaging;
My code:
BitmapSource img = BitmapFrame.Create(fs);
BitmapMetadata md = (BitmapMetadata)img.Metadata;
lblTitle.Text = md.Title;
lblSubject.Text = md.Subject;
lblAuthors.Text = md.Author; // <======
lblComments.Text = md.Comment;
lblDateTaken.Text = md.DateTaken;
It doesn't like highlighted line:
Cannot implicitely convert type "System.Collections.ObjectModel.ReadOnlyCollection <string> to <string>.
Evidently, I don't have a good enough grasp of C#. Can anyone help?
Thanks in advance.