public static ImageTag[] GetAllTags(IImageDecoder decoder) { if (decoder == null) { throw new ArgumentNullException(); } uint cProps; decoder.GetPropertyCount(out cProps); ImageTag[] propTags = new ImageTag[cProps]; decoder.GetPropertyIdList(cProps, propTags); return(propTags); }