Skip to content

Commit 8493ee1

Browse files
committed
Fix null-check in ToObject()
1 parent a3a886c commit 8493ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Section.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public object ToObject(Type type)
141141
{
142142
if (type == null)
143143
{
144-
throw new ArgumentNullException(type.Name);
144+
throw new ArgumentNullException(nameof(type));
145145
}
146146

147147
var obj = Activator.CreateInstance(type);

0 commit comments

Comments
 (0)