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

list declaration as [] #2594

Open
Bjelko opened this issue May 14, 2024 · 0 comments
Open

list declaration as [] #2594

Bjelko opened this issue May 14, 2024 · 0 comments

Comments

@Bjelko
Copy link

Bjelko commented May 14, 2024

Dear,
How to compile?

 private void SetNewOpenConnectionList()
        {
            OpenConnections = [];
            OpenConnections.CollectionChanged += (sender, args) => RaisePropertyChangedEvent(this, new PropertyChangedEventArgs("OpenConnections"));
        }

[] is used in Python not in C#
there is about 100 occurences of such list definitions in code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant