diff options
Diffstat (limited to 'src/Text/Def/TextLogic/Tagging/TagTypeAttribute.cs')
-rw-r--r-- | src/Text/Def/TextLogic/Tagging/TagTypeAttribute.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Def/TextLogic/Tagging/TagTypeAttribute.cs b/src/Text/Def/TextLogic/Tagging/TagTypeAttribute.cs index 228e1ba..3c5539c 100644 --- a/src/Text/Def/TextLogic/Tagging/TagTypeAttribute.cs +++ b/src/Text/Def/TextLogic/Tagging/TagTypeAttribute.cs @@ -24,9 +24,9 @@ namespace Microsoft.VisualStudio.Text.Tagging public TagTypeAttribute(Type tagType) { if (tagType == null) - throw new ArgumentNullException("tagType"); + throw new ArgumentNullException(nameof(tagType)); if (!typeof(ITag).IsAssignableFrom(tagType)) - throw new ArgumentException("Given type must derive from ITag", "tagType"); + throw new ArgumentException("Given type must derive from ITag", nameof(tagType)); this.type = tagType; } |