Skip to content

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

Closed

Description

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; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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