From f83affb340d1d19474f9deee9b5ff67b9102c252 Mon Sep 17 00:00:00 2001 From: Mark Heath Date: Sat, 14 Apr 2018 15:23:47 +0100 Subject: [PATCH] code cleanup and adding missing XML documentation --- NAudio/Midi/SmpteOffsetEvent.cs | 42 +++++++++++---------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/NAudio/Midi/SmpteOffsetEvent.cs b/NAudio/Midi/SmpteOffsetEvent.cs index c4dc30e..7c4449b 100644 --- a/NAudio/Midi/SmpteOffsetEvent.cs +++ b/NAudio/Midi/SmpteOffsetEvent.cs @@ -1,17 +1,18 @@ using System; -using System.Collections.Generic; -using System.Text; using System.IO; namespace NAudio.Midi { + /// + /// SMPTE Offset Event + /// public class SmpteOffsetEvent : MetaEvent { - private byte hours; - private byte minutes; - private byte seconds; - private byte frames; - private byte subFrames; // 100ths of a frame + private readonly byte hours; + private readonly byte minutes; + private readonly byte seconds; + private readonly byte frames; + private readonly byte subFrames; // 100ths of a frame /// /// Creates a new time signature event @@ -51,44 +52,29 @@ namespace NAudio.Midi /// /// Hours /// - public int Hours - { - get { return hours; } - } + public int Hours => hours; /// /// Minutes /// - public int Minutes - { - get { return minutes; } - } + public int Minutes => minutes; /// /// Seconds /// - public int Seconds - { - get { return seconds; } - } + public int Seconds => seconds; /// /// Frames /// - public int Frames - { - get { return frames; } - } + public int Frames => frames; /// /// SubFrames /// - public int SubFrames - { - get { return subFrames; } - } + public int SubFrames => subFrames; + - /// /// Describes this time signature event ///