fix: use ToString() instead of as string to support .NET Standard

This commit is contained in:
Jeffery Thompson
2019-05-22 11:01:14 -04:00
parent c0ed7f9b26
commit 78f5c4a7b6

View File

@@ -145,8 +145,8 @@ namespace ICD.Common.Utils.Extensions
{ {
if (extends == null) if (extends == null)
throw new ArgumentNullException("extends"); throw new ArgumentNullException("extends");
return extends.Value as string; return extends.Value == null ? null : extends.Value.ToString();
} }
/// <summary> /// <summary>