<commit_before>﻿//-----------------------------------------------------------------------
// <copyright file="SwaggerResultTypeAttribute.cs" company="NSwag">
//     Copyright (c) <NAME>. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author><NAME>, <EMAIL></author>
//-----------------------------------------------------------------------

using System;

namespace NSwag.Annotations
{
    /// <summary>Specifies the result type of a web service method to correctly generate a Swagger definition.</summary>
    public class SwaggerResultTypeAttribute : Attribute
    {
        /// <summary>Initializes a new instance of the <see cref="SwaggerResultTypeAttribute"/> class.</summary>
        /// <param name="resultType">The operation result type.</param>
        public SwaggerResultTypeAttribute(Type resultType)
        {
            ResultType = resultType; // TODO: Check for this attribute on WebAPI methods
        }

        /// <summary>Gets or sets the JSON result type of an MVC or Web API action method.</summary>
        public Type ResultType { get; set; }
    }
}
<commit_msg>Update SwaggerResultType.cs<commit_after>﻿//-----------------------------------------------------------------------
// <copyright file="SwaggerResultTypeAttribute.cs" company="NSwag">
//     Copyright (c) <NAME>. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author><NAME>, <EMAIL></author>
//-----------------------------------------------------------------------

using System;

namespace NSwag.Annotations
{
    /// <summary>Specifies the result type of a web service method to correctly generate a Swagger definition.</summary>
    public class SwaggerResultTypeAttribute : Attribute
    {
        /// <summary>Initializes a new instance of the <see cref="SwaggerResultTypeAttribute"/> class.</summary>
        /// <param name="resultType">The JSON result type of the MVC or Web API action method.</param>
        public SwaggerResultTypeAttribute(Type resultType)
        {
            ResultType = resultType; // TODO: Check for this attribute on WebAPI methods
        }

        /// <summary>Gets or sets the JSON result type of the MVC or Web API action method.</summary>
        public Type ResultType { get; set; }
    }
}

{'fraction_non_alphanumeric': 0.22715736040609136, 'fraction_numerical': 0.0, 'mean_word_length': 1.9823455233291298, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3095253', 'n_tokens_mistral': 572, 'n_tokens_neox': 566, 'n_words': 177}