© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
5 replies
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
body
is being declared as a new object of type TextPart. The constructor is being passed the string
"plain"
"plain"
, but next to that: that bracketed block, what's the C# structure/syntax being used here? How is that
Text
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ what's an object?
C#CC# / help
3y ago
✅ What syntax for c#?
C#CC# / help
2y ago
❔ is this syntax correct
C#CC# / help
3y ago