Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
SeleniumHQ
GitHub Repository: SeleniumHQ/Selenium
Path: blob/trunk/third_party/dotnet/devtools/src/generator/Templates/event.hbs
1864 views
// <auto-generated />

#nullable enable

namespace {{rootNamespace}}.{{domain.Name}}
{
    using System;
    using System.Text.Json.Serialization;

    /// <summary>
    /// {{xml-code-comment event.Description 1}}
    /// </summary>
    public sealed class {{className}}EventArgs : EventArgs
    {
    {{#each event.Parameters}}
        {{#if Description}}
        /// <summary>
        /// {{xml-code-comment Description 2}}
        /// </summary>
        {{else}}
        /// <summary>
        /// Gets or sets the {{Name}}
        /// </summary>
        {{/if}}
        [JsonPropertyName("{{Name}}")]
        {{#if Optional}}[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]{{/if}}
        public {{typemap ../context}} {{dehumanize Name}} { get; set; }{{#unless Optional}} = default!;{{/unless}}

    {{/each}}
    }
}