关于[Using Reflection to Set a Private Property in C#]的摘要:
When testing a class, you often need to assign a value to a property - a property which you wouldn't otherwise want to allow to be set. In this scenario, reflection can be a valuable tool.
原文地址: https://ilyana.dev/blog/2021-07-19-reflection-private-property/