lundi 19 juillet 2021

Why in C# with reflection we can set the value of property with private set, but can not invoke the private method

GetMethod only searches the public method, but with GetProperty, we get the public auto property with a private set, and we can set the value to this property. Can somebody explain why?





Aucun commentaire:

Enregistrer un commentaire