Skip to content

Allows to mark properties with a simple attribute and persist them in registry.

License

Notifications You must be signed in to change notification settings

ArxOne/Persistence

Repository files navigation

Persistence

Allows to mark properties with a simple attribute and persist them in registry.

How it works

Marking a property as persistent:

[Persistent("MyPersistedProperty", DefaultValue=1)] // the DefaultValue is optional
public int MyProperty { get; set; }

Setting the application registry node:

[assembly: RegistryPersistence(@"Software\MyApplication", CurrentUser = true)]

Things to be considered

When two properties from different instances or different types use the same persistence name, their value always stays synchronized (changing a value in an instance changes it everywhere).

About

Allows to mark properties with a simple attribute and persist them in registry.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages