Core/Refactor: Part 2

This commit is contained in:
hondacrx
2018-05-07 22:07:35 -04:00
parent 216db1c23a
commit 9b40067017
93 changed files with 321 additions and 388 deletions
+2 -2
View File
@@ -342,7 +342,7 @@ namespace Game.Entities
/// </returns>
public override string ToString()
{
return string.Format("From: {0}, To: {1}, Weight: {2}", From, To, Weight);
return $"From: {From}, To: {To}, Weight: {Weight}";
}
}
@@ -374,7 +374,7 @@ namespace Game.Entities
{
if (edge.Weight < 0)
{
throw new ArgumentOutOfRangeException(string.Format("Edge: '{0}' has negative weight", edge));
throw new ArgumentOutOfRangeException($"Edge: '{edge}' has negative weight");
}
}