This commit is contained in:
Chris Cameron
2017-11-16 10:10:05 -05:00
parent e4bc8289cc
commit 4f46a3ebda
9 changed files with 21 additions and 19 deletions

View File

@@ -166,9 +166,9 @@ namespace ICD.Common.Utils
s_AttributeToMethodCache[attribute] = method; s_AttributeToMethodCache[attribute] = method;
} }
#endregion #endregion
#region Lookup #region Lookup
/// <summary> /// <summary>
/// Gets the first attribute on the given class type matching the generic type. /// Gets the first attribute on the given class type matching the generic type.
@@ -244,6 +244,6 @@ namespace ICD.Common.Utils
return s_AttributeToMethodCache[attribute]; return s_AttributeToMethodCache[attribute];
} }
#endregion #endregion
} }
} }

View File

@@ -1,11 +1,11 @@
using System; using System;
using ICD.Common.Properties;
using ICD.Common.Utils.IO;
#if SIMPLSHARP #if SIMPLSHARP
using Crestron.SimplSharp.Reflection; using Crestron.SimplSharp.Reflection;
#else #else
using System.Reflection; using System.Reflection;
#endif #endif
using ICD.Common.Properties;
using ICD.Common.Utils.IO;
namespace ICD.Common.Utils.Extensions namespace ICD.Common.Utils.Extensions
{ {

View File

@@ -1,10 +1,10 @@
using System; using System;
using System.Collections.Generic;
#if SIMPLSHARP #if SIMPLSHARP
using Crestron.SimplSharp.Reflection; using Crestron.SimplSharp.Reflection;
#else #else
using System.Reflection; using System.Reflection;
#endif #endif
using System.Collections.Generic;
namespace ICD.Common.Utils.Extensions namespace ICD.Common.Utils.Extensions
{ {

View File

@@ -12,7 +12,7 @@ namespace ICD.Common.Utils.Json
/// <param name="writer">The <see cref="T:Newtonsoft.Json.JsonWriter"/> to write to.</param> /// <param name="writer">The <see cref="T:Newtonsoft.Json.JsonWriter"/> to write to.</param>
/// <param name="value">The value.</param> /// <param name="value">The value.</param>
/// <param name="serializer">The calling serializer.</param> /// <param name="serializer">The calling serializer.</param>
public sealed override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) public override sealed void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{ {
if (value == null) if (value == null)
{ {
@@ -42,7 +42,7 @@ namespace ICD.Common.Utils.Json
/// <returns> /// <returns>
/// The object value. /// The object value.
/// </returns> /// </returns>
public sealed override object ReadJson(JsonReader reader, Type objectType, object existingValue, public override sealed object ReadJson(JsonReader reader, Type objectType, object existingValue,
JsonSerializer serializer) JsonSerializer serializer)
{ {
if (reader.TokenType == JsonToken.Null) if (reader.TokenType == JsonToken.Null)

View File

@@ -1,5 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using ICD.Common.Properties; using ICD.Common.Properties;
using ICD.Common.Utils.Extensions; using ICD.Common.Utils.Extensions;

View File

@@ -189,4 +189,5 @@ namespace ICD.Common.Utils
} }
} }
} }
#endif #endif

View File

@@ -125,4 +125,5 @@ namespace ICD.Common.Utils
} }
} }
} }
#endif #endif

View File

@@ -1,12 +1,12 @@
using System; using System;
using ICD.Common.Properties;
using ICD.Common.Services;
using ICD.Common.Services.Logging;
#if SIMPLSHARP #if SIMPLSHARP
using Crestron.SimplSharp; using Crestron.SimplSharp;
#else #else
using System.Threading.Tasks; using System.Threading.Tasks;
#endif #endif
using ICD.Common.Properties;
using ICD.Common.Services;
using ICD.Common.Services.Logging;
namespace ICD.Common.Utils namespace ICD.Common.Utils
{ {

View File

@@ -3,6 +3,7 @@ using System.Text;
using ICD.Common.Utils.IO; using ICD.Common.Utils.IO;
#if SIMPLSHARP #if SIMPLSHARP
using Crestron.SimplSharp.CrestronXml; using Crestron.SimplSharp.CrestronXml;
#else #else
using System.Xml; using System.Xml;
#endif #endif
@@ -122,9 +123,9 @@ namespace ICD.Common.Utils.Xml
m_Writer.WriteRaw(xml); m_Writer.WriteRaw(xml);
} }
#endregion #endregion
#region Private Methods #region Private Methods
#if STANDARD #if STANDARD
private static XmlWriterSettings GetSettings(Encoding encoding) private static XmlWriterSettings GetSettings(Encoding encoding)