Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Luo <basehello@icloud.com>2021-03-22 08:30:57 +0300
committerXiao Luo <basehello@icloud.com>2021-03-22 08:30:57 +0300
commita4fb63238fac9a18d66833594f5971cfa6fe6b76 (patch)
tree06d4511900e86985cd66ad2952a40303f92ee73b
parenta54806a9dd8c003d276153f66bca13f7cbfcd56d (diff)
-rw-r--r--mdoc/Mono.Documentation/Updater/Formatters/AttributeFormatters/AttributeFormatter.cs3
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);
}