public void Read(Stream stream) { using (var io = IoBuffer.FromStream(stream)) { var version = io.ReadUInt32(); ThumbnailFileID = io.ReadUInt32(); ThumbnailTypeID = io.ReadUInt32(); var numBindings = io.ReadUInt32(); Bindings = new AppearanceBinding[numBindings]; for (var i = 0; i < numBindings; i++) { Bindings[i] = new AppearanceBinding { FileID = io.ReadUInt32(), TypeID = io.ReadUInt32() }; } } }