Misc cleanups

This commit is contained in:
hondacrx
2020-05-05 19:09:57 -04:00
parent 9ec956becf
commit c3adef77a9
38 changed files with 90 additions and 100 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ namespace Framework.Dynamic
set
{
_hasValue = value;
Value = _hasValue ? new T() : default(T);
Value = _hasValue ? new T() : default;
}
}
@@ -41,7 +41,7 @@ namespace Framework.Dynamic
public void Clear()
{
_hasValue = false;
Value = default(T);
Value = default;
}
public static explicit operator T(Optional<T> value)
+1
View File
@@ -4,6 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<Platforms>x64</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -253,7 +253,7 @@ namespace Framework.GameMath
/// <returns>A string representation of this object.</returns>
public override string ToString()
{
return $"Plane[n={_normal.ToString()}, c={_const.ToString()}]";
return $"Plane[n={_normal}, c={_const}]";
}
#endregion
}