Reference examples for C#/.NET show "new Struct" when it should be "new <module>Props"
See original GitHub issuehttps://docs.aws.amazon.com/cdk/api/latest/dotnet/api/Amazon.CDK.AWS.Cognito.html
Example of creating a user pool:
new UserPool(this, "myuserpool", new Struct {
UserPoolName = "myawesomeapp-userpool"
});
This should be:
new UserPool(this, "myuserpool", new UserPoolProps {
UserPoolName = "myawesomeapp-userpool"
});
This problem is all over the place in the .NET reference examples. Very annoying.
This is a 📕 documentation issue
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Structure types - C# reference - Microsoft Learn
Learn about the struct type in C#. ... syntax to specify what members to modify and their new values, as the following example...
Read more >object - What does the keyword "new" do to a struct in C
From struct (C# Reference) on MSDN: When you create a struct object using the new operator, it gets created and the appropriate constructor...
Read more >Struct in C# - TutorialsTeacher
A struct object can be created with or without the new operator, same as primitive type variables. Example: Create Structure.
Read more >C struct (Structures) - Programiz
In this tutorial, you'll learn about struct types in C Programming. You will learn to define and use structures with the help of...
Read more >C - Structures - Tutorialspoint
The struct statement defines a new data type, with more than one member. ... The following example shows how to use a structure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this has been fixed now. I’ve looked at all the links mentioned and can’t find any remaining issues. I think all the work with rosetta has ended up fixing this.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.