Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

DecisionTree.ToCode() returns code that does not compile #706

@ar7z1

Description

@ar7z1

DecisionTreeWriter adds ArgumentException to generated code:

writer.WriteLine(indent + "else throw new ArgumentException(\"input\", \"Unexpected value at position " + attributeIndex + ".\");");

But generated "usings" section does not contain using System; (ArgumentException lies there):

writer.WriteLine("    using System.CodeDom.Compiler;");
writer.WriteLine("    using System.Collections.Generic;");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions