Skip to content

General purpose computing library, written in and for Visual C#.

License

Notifications You must be signed in to change notification settings

MTadder/MTLib-VisualCSharp

Repository files navigation

MTLibrary (C#) v0.5.49.21_beendid

Logo

  • class DictionaryFile
    • Acts as a controller for a File-synchronized Dictionary<String, String> object.

    • Useful for easily persisting String pairs in a locally-stored binary file format.

    • When assigning a new value, the binary file (on disk) will not contain the value automatically.

      Call Save in order to synchronize new keys/value inside the binary. However, if you were to try to Get an unsynchronized key, this controller object will search it's internal Dictionary for the key, and return it (even if the binary does not yet contain it). Furthermore, if the key does not exist, the Get call will return a String.Empty.

      To clarify, if the binary contains a key that is not synchronized, calling Get will not Load the binary and return the already-saved key; instead, it will return String.Empty, because the binary has not yet been instructed to synchronize (with Load).

    • static explicit operator this(Dictionary<String, String> pairs)

    • static explicit operator this(String[] pairs)

    • static implicit operator Dictionary<String, String>(this df)

    • static implicit operator String[](this df)

    • constructor this(String path = Guid.NewGuid().ToString())

    • String this[String key]

    • String Get(String key)

    • void Remove(String key)

    • Boolean IsKey(String key)

    • Boolean IsValue(String value)

    • void Set(String key, [String value = String.Empty])

    • void Load()

    • void Clear()

    • void Save()

  • static class Secure
    • class Authenticator
      • Salt salt {get, set}
      • void Hash(String data)
      • void Persist(DictionaryFile into)
      • void Register(String key)
      • Boolean IsRegistered(String key)
    • class Salt
      • String Hash(String data)
  • static class Meta
    • String Author, Email, Codename
    • ConsoleColor ColorCode
    • String Serialize(Array target, [String seperator, Boolean showIndexes])

About

General purpose computing library, written in and for Visual C#.

Topics

Resources

License

Stars

Watchers

Forks

Languages