I’ve found a code that does exactly what I like:
View/edit ID3 data for MP3 files
…
class a{
public ? getContent(){
string Title = Encoding.Default.GetString(tag.Title);
string Artist = Encoding.Default.GetString(tag.Artist);
string Album = Encoding.Default.GetString(tag.Album);
}
}
class form1{
button1.click()
{
? = a.getContent
text1.text = ?.Title;
text2.Text = ?.Artist;
}
}
Simucal print the result to the console but I’d like to have a winform that gets this input and puts it in some textboxes. I guess I can do it with arrays but I guess there are better ways to do it in the mvvm way (I know that my question may make no sense but I like to do it the right way)…
Please help 🙂
Is there some reason you can’t use a class to encapsulate that data?
Alternatively, if you want to be less ‘safe’ about it, you could just pack it all into a Dictionary: