https://github.com/lostmsu/observableenvironment
.NET library for observing changes to environment variables
https://github.com/lostmsu/observableenvironment
Last synced: about 2 months ago
JSON representation
.NET library for observing changes to environment variables
- Host: GitHub
- URL: https://github.com/lostmsu/observableenvironment
- Owner: lostmsu
- License: mit
- Created: 2023-09-01T17:56:50.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T17:57:13.000Z (almost 3 years ago)
- Last Synced: 2025-02-24T16:44:15.946Z (over 1 year ago)
- Language: C#
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/Lost.Environment.Observable/)
C# package for observing changes to **user** environment variables. Windows-only.
```csharp
Lost.EnvironmentVariables.Vars.PropertyChanged += (_, e) =>
{
string? value = Lost.EnvironmentVariables.Vars[e.PropertyName];
Console.WriteLine($"Variable {e.PropertyName} changed to {value}");
};
```