use nameof instead
This commit is contained in:
parent
4e807fb612
commit
c40a67d26b
1 changed files with 2 additions and 3 deletions
|
@ -77,7 +77,7 @@ namespace ARMeilleure.Translation
|
||||||
{
|
{
|
||||||
if ((uint)offset >= (ulong)_size)
|
if ((uint)offset >= (ulong)_size)
|
||||||
{
|
{
|
||||||
throw new ArgumentOutOfRangeException("offset");
|
throw new ArgumentOutOfRangeException(nameof(offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
var node = _memoryRanges.First;
|
var node = _memoryRanges.First;
|
||||||
|
@ -86,7 +86,7 @@ namespace ARMeilleure.Translation
|
||||||
{
|
{
|
||||||
if (node == null)
|
if (node == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentOutOfRangeException("offset");
|
throw new ArgumentOutOfRangeException(nameof(offset));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset <= node.Value.End)
|
if (offset <= node.Value.End)
|
||||||
|
@ -103,6 +103,5 @@ namespace ARMeilleure.Translation
|
||||||
|
|
||||||
node.Value = (node.Value.Start, offset - 1);
|
node.Value = (node.Value.Start, offset - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue