private void ReadContentDescription(Stream stream, Tag tag) { BinaryReader reader = new BinaryReader(stream); ushort [] sizes = new ushort[5]; for(int i = 0; i < sizes.Length; i++) { sizes[i] = reader.ReadUInt16(); } string [] strings = new string[sizes.Length]; for(int i = 0; i < strings.Length; i++) { strings[i] = ReadUtf16String(reader, sizes[i]).Trim(); } if(sizes[0] > 0 && strings[0] != String.Empty) { tag.SetTitle(strings[0]); } if(sizes[1] > 0 && strings[1] != String.Empty) { tag.SetArtist(strings[1]); } if(sizes[3] > 0 && strings[3] != String.Empty) { tag.SetComment(strings[3]); } }