Home > Net >  C # const type through the value in the Key reflection
C # const type through the value in the Key reflection

Time:09-20



///& lt; Summary>
///for const Key
///& lt;/summary>
///& lt; Returns>
Public static string GETconstKeyByValue (string val)
{
The Type t=typeof (t);
FieldInfo [] fis=t.G etFields ();
Return fis. Where (x=& gt; X.G etRawConstantValue (), ToString ()==val) FirstOrDefault (). The Name;
}

CodePudding user response:

What is your this font?

Why=& gt; What is displayed?

CodePudding user response:

What's the problem??????

CodePudding user response:

reference 1st floor by_ love reply:
you what is the font?

Why=& gt; What is displayed?



Fira Code
  •  Tags:  
  • C#
  • Related