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?
Copyright © 2021 Jogjafile Inc.
Derive from this document.
GetRawConstantValue
method apply to.NET Standard
. So you could create.NET Standard
class library that could referenced by UWP project.Usage
Note: If version of
.NET Standard
class library is 2.0, you need modify uwp min version to 16299.