I need to get a value of a constant inside my class.
GetField works fine.
But then myFieldInfo.GetRawConstantValue() normally works perfectly, but is not available on UWP.
Is there any way to achieve this on UWP?
I need to get a value of a constant inside my class.
GetField works fine.
But then myFieldInfo.GetRawConstantValue() normally works perfectly, but is not available on UWP.
Is there any way to achieve this on UWP?
Derive from this document.
GetRawConstantValuemethod apply to.NET Standard. So you could create.NET Standardclass library that could referenced by UWP project.Usage
Note: If version of
.NET Standardclass library is 2.0, you need modify uwp min version to 16299.