question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reference examples for C#/.NET show "new Struct" when it should be "new <module>Props"

See original GitHub issue

https://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:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
corymhallcommented, Jan 27, 2022

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.

0reactions
github-actions[bot]commented, Jan 27, 2022

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found