Whitespace

This commit is contained in:
Chris Cameron
2017-09-27 13:49:13 -04:00
parent ac885e9837
commit d598d42cff
14 changed files with 174 additions and 183 deletions

View File

@@ -83,7 +83,7 @@ namespace ICD.Common.Utils
e.Message);
}
foreach (var type in types)
foreach (CType type in types)
CacheType(type);
}

View File

@@ -209,8 +209,6 @@ namespace ICD.Common.Utils.Extensions
.SelectMany(s => s.Split(delimitersArray.Skip(1)));
}
/// <summary>
/// Removes whitespace from the string.
/// </summary>

View File

@@ -2,6 +2,7 @@
#if SIMPLSHARP
using Crestron.SimplSharp.CrestronIO;
using GC = Crestron.SimplSharp.CrestronEnvironment.GC;
#else
using System.IO;
using GC = System.GC;
@@ -46,9 +47,7 @@ namespace ICD.Common.Utils.IO
return;
if (disposing)
{
m_TextWriter.Dispose();
}
m_Disposed = true;
}
}

View File

@@ -35,7 +35,7 @@ namespace ICD.Common.Utils
[PublicAPI]
public static void ConsoleCommandResponse(string message, params object[] args)
{
if(args != null && args.Any())
if (args != null && args.Any())
message = string.Format(message, args);
#if SIMPLSHARP

View File

@@ -34,13 +34,7 @@ namespace ICD.Common.Utils
/// Gets the program number.
/// </summary>
[PublicAPI]
public static uint ProgramNumber
{
get
{
return InitialParametersClass.ApplicationNumber;
}
}
public static uint ProgramNumber { get { return InitialParametersClass.ApplicationNumber; } }
/// <summary>
/// Gets the compile date of the program.
@@ -108,7 +102,7 @@ namespace ICD.Common.Utils
return output;
}
foreach (string line in progInfo.Split(new[] { "\n\r", "\r\n", "\n", "\r" }))
foreach (string line in progInfo.Split(new[] {"\n\r", "\r\n", "\n", "\r"}))
{
if (string.IsNullOrEmpty(line))
continue;

View File

@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using ICD.Common.Utils.EventArguments;
using ICD.Common.Properties;
using ICD.Common.Utils.EventArguments;
#if SIMPLSHARP
using Crestron.SimplSharp.CrestronXml;
#else

View File

@@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICD.Common.Utils.EventArguments;
using ICD.Common.Properties;
using ICD.Common.Utils.EventArguments;
using ICD.Common.Utils.Extensions;
using ICD.Common.Utils.IO;