⬇️ Result | Source ➡️
Douglas Adams on MyItem
Id, Guid and Title are built-in properties
- Id: 48832
- Guid: 36726e4e-21cd-4c00-9ce8-72080f8935da
- Title: Douglas
Since person
is fully typed, you can just call it's properties.
- Name: Douglas
- Birthday: 3/11/1952 12:00:00 AM
- Is Alive: False
- Fav Num. Int: 42
Use Get(…)
if you don't care about the var type or Get<T>(…)
or typed methods such as .String(…)
.
- Name: Douglas
- Birthday: 3/11/1952 12:00:00 AM
- Birthday Get<string> 03/11/1952 00:00:00
- Birthday Get<DateTime> 3/11/1952 12:00:00 AM
- Name (strings): Douglas
- Birthday: 3/11/1952
- Is Alive: False
- Fav Num. Int: 42
- Fav Num. Float: 41.99
Use fallback: …
to handle empty values or conversion problems.
- Name (strings): Douglas
- Name (int): 12345
Use .Attribute(…)
to safely encode properties.
Mouse over this to see the effect.