Looking for something specific?
  Home
Home
Articles
Page Tag-Cloud
  Software
Software Tag-Cloud
Building from Source
Open Source Definition
All Software
  Popular Tags
Legacy
C Plus Plus
Source Code
Class
Cryptography
  Members
Login
Web-Email
Notable Members
  Official
Our Company
Copyright Information
Software EULA
GPL EULA
LGPL Eula
Pre-Release EULA
Privacy Policy
  Support
Make Contact
 
NTDLS.Persistence
Downloads   0
User Rating   (Rate)
Last Updated   11/15/2023
License   MIT License
- Download -
View all Releases
Recommended Release
Version   1.0.1
Date   11/15/2023
Status   Stable Stable software is believed to be stable and ready for production use.

This software is open source. You can obtain the latest source code from the GitHub repository or browse the releases for the source code associated with a specific release. If you make any changes which you feel improves this application, please let us know via our Contact Page.

NTDLS.Persistence

?? Be sure to check out the NuGet pacakge: https://www.nuget.org/packages/NTDLS.Persistence

Helpers for reading and writing serialized objects to/from files. Helpful for configuration files.

class UIPreferences
{
    public string Username { get; set; } = string.Empty;
    public bool RememberPassword { get; set; }
}

static void Main(string[] args)
{

    //Example of saving preferences:
    var preferences = new UIPreferences()
    {
        Username = "JPatterson",
        RememberPassword = false
    };

    //The file will be given the name of the class type and the given program 
    //  name and will be stored in the common programs data directory.
    CommonApplicationData.SaveToDisk("MyProgramName", preferences);

    //Exmaple loading preferences:
    var loadedPreferences = CommonApplicationData.LoadFromDisk<UIPreferences>("MyProgramName");
}

Recent Releases:
 1.0.1  

Tags:
 Disk Io    Persistence    Preferences    Serialization  

No comments currently exists for this software. Why don't you add one?
First Previous Next Last 

 
Copyright © 2024 NetworkDLS.
All rights reserved.
 
Privacy Policy | Our Company | Contact