Skip to content

CSharpApiGenerator doesn't assign default values to Optional<> type. #305

Closed
@yaeldekel

Description

@yaeldekel

The code generated for an argument that is defined as
string LabelColumn = "Label";

is:
///


/// Column to use for labels
///

public string LabelColumn { get; set; } = "Label";

but the code generate for an argument that is defined as
public Optional GroupColumn = Optional.Implicit("GroupId");

is:

        /// <summary>
        /// Column to use for grouping
        /// </summary>
        public Microsoft.ML.Runtime.EntryPoints.Optional<string> GroupColumn { get; set; }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions