Use better code
This commit is contained in:
parent
608e7a99bc
commit
75c8a8ced4
32 changed files with 77 additions and 105 deletions
|
|
@ -42,8 +42,7 @@ namespace TShockAPI
|
|||
get { return this.headerFormat; }
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException();
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
|
||||
this.headerFormat = value;
|
||||
}
|
||||
|
|
@ -58,8 +57,7 @@ namespace TShockAPI
|
|||
get { return this.footerFormat; }
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
throw new ArgumentNullException();
|
||||
ArgumentNullException.ThrowIfNull(value);
|
||||
|
||||
this.footerFormat = value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue