vendredi 25 septembre 2015

What does it mean to "mark a field as literal" in the world of .NET?

According to Microsoft's documentation, Type.GetValue(object) will throw a NotSupportedException if "A field is marked literal, but the field does not have one of the accepted literal types."

I have no idea what it means to "mark a field as literal." I want to understand this so that I may know how to guard against this exception.





Aucun commentaire:

Enregistrer un commentaire