Private Accessors in Visual Studio 2012
问题 as far as I know Visual Studio 2012 will not support Private Accessors. Can you give me some infos on possible alternatives? PrivateObject.Invoke() is not the best solution for me. Thank you in advance! 回答1: Mark your members as "internal" and use the InternalsVisibleTo attribute. Simple to use and no type safety issues. 回答2: Maybe this posting Home-made Private Accessor for Visual Studio 2012+ will help you creating your own Private Accessor. Regards, Stefan 回答3: I started using the Dynamic