diff options
Diffstat (limited to 'src/Core/Def/ContentType/ContentTypeAttribute.cs')
-rw-r--r-- | src/Core/Def/ContentType/ContentTypeAttribute.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Core/Def/ContentType/ContentTypeAttribute.cs b/src/Core/Def/ContentType/ContentTypeAttribute.cs index e5939a1..45f5af8 100644 --- a/src/Core/Def/ContentType/ContentTypeAttribute.cs +++ b/src/Core/Def/ContentType/ContentTypeAttribute.cs @@ -14,7 +14,6 @@ namespace Microsoft.VisualStudio.Utilities /// <seealso cref="ContentTypeDefinition"></seealso> public sealed class ContentTypeAttribute : MultipleBaseMetadataAttribute { - private string contentTypes; /// <summary> /// Initializes a new instance of <see cref="ContentTypeAttribute"/>. @@ -26,20 +25,14 @@ namespace Microsoft.VisualStudio.Utilities { if (string.IsNullOrEmpty(name)) { - throw new ArgumentNullException("name"); + throw new ArgumentNullException(nameof(name)); } - contentTypes = name; + ContentTypes = name; } /// <summary> /// The content type name. /// </summary> - public string ContentTypes - { - get - { - return contentTypes; - } - } + public string ContentTypes { get; } } } |