C#C
C#2y ago
swaysteady

What's this syntax in this object instantiation

This screenshot is straight from MimeKit's quick start guide here: https://mimekit.net/docs/html/Creating-Messages.htm

I understand body is being declared as a new object of type TextPart. The constructor is being passed the string "plain", but next to that: that bracketed block, what's the C# structure/syntax being used here? How is that Text variable assignment in the block being associated to the body object?

I'd like to look it up but I'm not sure what to go reading about. Can I have some super beginner help? 🙂
image.png
Was this page helpful?