Show / Hide Table of Contents

Method GetPrivateProperty

| Edit this page View Source

GetPrivateProperty<T>(object, string)

Get the value of a private property of any class instance
Declaration
public static T GetPrivateProperty<T>(object instance, string name)
Parameters
Type Name Description
object instance Instance of the class
string name Name of the property
Returns
Type Description
T The value of the property
Type Parameters
Name Description
T Generic property type
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾