Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]:[dotnet] Graph constructor should consider the case where transitions' value is null #2708

Open
JeffreySu opened this issue May 17, 2024 · 0 comments
Labels
AutoGen.Net issues related to AutoGen.Net enhancement New feature or request

Comments

@JeffreySu
Copy link

Is your feature request related to a problem? Please describe.

Graph constructor should consider the case where transitions' value is null

List.AddRange(transitions); not support a null param.

Describe the solution you'd like

change to:

    public Graph()
    {
    }

    public Graph(IEnumerable<Transition> transitions)
    {
        if (transitions != null)
        {
            this.transitions.AddRange(transitions);
        }

Additional context

No response

@JeffreySu JeffreySu added the enhancement New feature or request label May 17, 2024
JeffreySu added a commit to JeffreySu/autogen that referenced this issue May 17, 2024
JeffreySu added a commit to JeffreySu/autogen that referenced this issue May 17, 2024
@LittleLittleCloud LittleLittleCloud added this to the AutoGen.Net 0.0.14 milestone May 17, 2024
JeffreySu added a commit to JeffreySu/autogen that referenced this issue May 22, 2024
@LittleLittleCloud LittleLittleCloud removed this from the AutoGen.Net 0.0.14 milestone May 28, 2024
@LittleLittleCloud LittleLittleCloud added the AutoGen.Net issues related to AutoGen.Net label May 28, 2024
@LittleLittleCloud LittleLittleCloud added this to the AutoGen.Net 0.0.15 milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoGen.Net issues related to AutoGen.Net enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants