Answer
Preferences stores small key-value primitives (strings, numbers, booleans, dates) in platform-native settings storage. Use it for lightweight, non-sensitive app state like the last-selected tab, a theme choice, or a first-run flag. It is not for large or structured data.
Preferences.Default.Set("theme", "dark");
string theme = Preferences.Default.Get("theme", "light");Real-world example An app remembers the user's chosen theme across launches with a single Preferences key.