public static Tags FromStream(Stream stream) { ArrayList frames = new ArrayList(); TagReader reader = new TagReader(stream); while (reader.Read()) { string frameId = reader.GetKey(); object frameValue = reader.GetValue(); frames.Add(new FrameEntry(frameId, frameValue)); } return new Tags(reader.MajorVersion, reader.MinorVersion, frames); }
public static Tags FromStream(Stream stream) { ArrayList frames = new ArrayList(); TagReader reader = new TagReader(stream); while (reader.Read()) { string frameId = reader.GetKey(); object frameValue = reader.GetValue(); frames.Add(new FrameEntry(frameId, frameValue)); } return(new Tags(reader.MajorVersion, reader.MinorVersion, frames)); }