class
Example.Greeter
Build personalized greetings without network access.
Remarks
Create one greeter per locale. Prefix changes affect future calls.
Related types
System.ObjectC# · DOCFX
Real DocFX assembly and compiler XML output from the checked-in csharp fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.
Build personalized greetings without network access.
Create one greeter per locale. Prefix changes affect future calls.
System.ObjectGreet a reader.
nameSystem.StringReader name.
System.StringA friendly greeting.
Reject an empty reader name.
System.ArgumentExceptionWhen name is empty.
nameSystem.StringReader name.
System.StringA validated greeting.
Greet several readers while preserving input order.
namesSystem.String[]Reader names.
System.String[]Greetings in the same order.
Greeting prefix used for future calls.
System.StringSupported greeting moods.
FriendlyFormalExample.MoodExample.Mood