aboutsummaryrefslogtreecommitdiff
path: root/BDInfo
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:31:14 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:31:14 +0100
commita36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (patch)
treeb1484407efd83b243d0ea792b18c598e9ff53053 /BDInfo
parent9fa60ec9340cbc8b4ed3e866fcf61852077902a1 (diff)
ReSharper Reformat: Properties to expression bodied form.
Diffstat (limited to 'BDInfo')
-rw-r--r--BDInfo/BDInfoSettings.cs96
-rw-r--r--BDInfo/TSStream.cs31
-rw-r--r--BDInfo/TSStreamBuffer.cs16
-rw-r--r--BDInfo/TSStreamClip.cs8
4 files changed, 20 insertions, 131 deletions
diff --git a/BDInfo/BDInfoSettings.cs b/BDInfo/BDInfoSettings.cs
index d127710f4..f4cb30016 100644
--- a/BDInfo/BDInfoSettings.cs
+++ b/BDInfo/BDInfoSettings.cs
@@ -3,103 +3,31 @@ namespace BDInfo
{
class BDInfoSettings
{
- public static bool GenerateStreamDiagnostics
- {
- get
- {
- return true;
- }
- }
+ public static bool GenerateStreamDiagnostics => true;
- public static bool EnableSSIF
- {
- get
- {
- return true;
- }
- }
+ public static bool EnableSSIF => true;
- public static bool AutosaveReport
- {
- get
- {
- return false;
- }
- }
+ public static bool AutosaveReport => false;
- public static bool GenerateFrameDataFile
- {
- get
- {
- return false;
- }
- }
+ public static bool GenerateFrameDataFile => false;
- public static bool FilterLoopingPlaylists
- {
- get
- {
- return true;
- }
- }
+ public static bool FilterLoopingPlaylists => true;
- public static bool FilterShortPlaylists
- {
- get
- {
- return false;
- }
- }
+ public static bool FilterShortPlaylists => false;
- public static int FilterShortPlaylistsValue
- {
- get
- {
- return 0;
- }
- }
+ public static int FilterShortPlaylistsValue => 0;
- public static bool UseImagePrefix
- {
- get
- {
- return false;
- }
- }
+ public static bool UseImagePrefix => false;
- public static string UseImagePrefixValue
- {
- get
- {
- return null;
- }
- }
+ public static string UseImagePrefixValue => null;
/// <summary>
/// Setting this to false throws an IComparer error on some discs.
/// </summary>
- public static bool KeepStreamOrder
- {
- get
- {
- return true;
- }
- }
+ public static bool KeepStreamOrder => true;
- public static bool GenerateTextSummary
- {
- get
- {
- return false;
- }
- }
+ public static bool GenerateTextSummary => false;
- public static string LastPath
- {
- get
- {
- return string.Empty;
- }
- }
+ public static string LastPath => string.Empty;
}
}
diff --git a/BDInfo/TSStream.cs b/BDInfo/TSStream.cs
index 98269a362..fad3f1acb 100644
--- a/BDInfo/TSStream.cs
+++ b/BDInfo/TSStream.cs
@@ -142,21 +142,12 @@ namespace BDInfo
public double PacketSeconds = 0;
public int AngleIndex = 0;
- public ulong PacketSize
- {
- get
- {
- return PacketCount * 192;
- }
- }
+ public ulong PacketSize => PacketCount * 192;
private string _LanguageCode;
public string LanguageCode
{
- get
- {
- return _LanguageCode;
- }
+ get => _LanguageCode;
set
{
_LanguageCode = value;
@@ -398,13 +389,7 @@ namespace BDInfo
}
}
- public virtual string Description
- {
- get
- {
- return "";
- }
- }
+ public virtual string Description => "";
public abstract TSStream Clone();
@@ -444,10 +429,7 @@ namespace BDInfo
private TSVideoFormat _VideoFormat;
public TSVideoFormat VideoFormat
{
- get
- {
- return _VideoFormat;
- }
+ get => _VideoFormat;
set
{
_VideoFormat = value;
@@ -488,10 +470,7 @@ namespace BDInfo
private TSFrameRate _FrameRate;
public TSFrameRate FrameRate
{
- get
- {
- return _FrameRate;
- }
+ get => _FrameRate;
set
{
_FrameRate = value;
diff --git a/BDInfo/TSStreamBuffer.cs b/BDInfo/TSStreamBuffer.cs
index 36f3149fa..17025c2e3 100644
--- a/BDInfo/TSStreamBuffer.cs
+++ b/BDInfo/TSStreamBuffer.cs
@@ -37,21 +37,9 @@ namespace BDInfo
Stream = new MemoryStream(Buffer);
}
- public long Length
- {
- get
- {
- return (long)BufferLength;
- }
- }
+ public long Length => (long)BufferLength;
- public long Position
- {
- get
- {
- return Stream.Position;
- }
- }
+ public long Position => Stream.Position;
public void Add(
byte[] buffer,
diff --git a/BDInfo/TSStreamClip.cs b/BDInfo/TSStreamClip.cs
index 23408859d..20f795e53 100644
--- a/BDInfo/TSStreamClip.cs
+++ b/BDInfo/TSStreamClip.cs
@@ -74,13 +74,7 @@ namespace BDInfo
}
}
- public ulong PacketSize
- {
- get
- {
- return PacketCount * 192;
- }
- }
+ public ulong PacketSize => PacketCount * 192;
public ulong PacketBitRate
{