diff options
author | Xiao Luo <basehello@icloud.com> | 2021-03-22 08:30:57 +0300 |
---|---|---|
committer | Xiao Luo <basehello@icloud.com> | 2021-03-22 08:30:57 +0300 |
commit | a4fb63238fac9a18d66833594f5971cfa6fe6b76 (patch) | |
tree | 06d4511900e86985cd66ad2952a40303f92ee73b | |
parent | a54806a9dd8c003d276153f66bca13f7cbfcd56d (diff) |
-rw-r--r-- | mdoc/Mono.Documentation/Updater/Formatters/AttributeFormatters/AttributeFormatter.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mdoc/Mono.Documentation/Updater/Formatters/AttributeFormatters/AttributeFormatter.cs b/mdoc/Mono.Documentation/Updater/Formatters/AttributeFormatters/AttributeFormatter.cs index ca5d3c6a..76228184 100644 --- a/mdoc/Mono.Documentation/Updater/Formatters/AttributeFormatters/AttributeFormatter.cs +++ b/mdoc/Mono.Documentation/Updater/Formatters/AttributeFormatters/AttributeFormatter.cs @@ -123,9 +123,8 @@ namespace Mono.Documentation.Updater.Formatters { // When a property type of an attribute is an object type you can assign any type to it, // so we need to convert the object type to a concrete object type. - if (v is CustomAttributeArgument) + if (v is CustomAttributeArgument attributeArgument) { - var attributeArgument = (CustomAttributeArgument)v; return MakeAttributesValueString(attributeArgument.Value, attributeArgument.Type); } |