mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-18 22:50:50 +08:00
22 lines
564 B
C#
22 lines
564 B
C#
namespace System.Application;
|
|
|
|
public class DISafeGetTest
|
|
{
|
|
//[Test]
|
|
//public void Reflection()
|
|
//{
|
|
// var methods = typeof(DISafeGet).GetMethods().Where(x => x.IsStatic && x.GetParameters().Length == 0);
|
|
|
|
// foreach (var method in methods)
|
|
// {
|
|
// try
|
|
// {
|
|
// method.Invoke(null, Array.Empty<object>());
|
|
// }
|
|
// catch (Exception e)
|
|
// {
|
|
// throw new Exception($"method.Invoke fail, name: {method.Name}", e);
|
|
// }
|
|
// }
|
|
//}
|
|
} |