Created
June 26, 2023 06:56
-
-
Save jskeet/8a63a404a2f3f8f5025d62f54dc3d55c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ConsoleApp1; | |
using System.Reflection; | |
var property = typeof(Resource1).GetProperty("Default", | |
BindingFlags.Public | BindingFlags.NonPublic | | |
BindingFlags.Static | BindingFlags.DeclaredOnly); | |
string value = (string) property.GetValue(null); | |
Console.WriteLine(value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment