Show / Hide Table of Contents

Method SetPrivateField

| Edit this page View Source

SetPrivateField(object, string, object)

Set a value of a private field of any class instance
Declaration
public static void SetPrivateField(object instance, string name, object value)
Parameters
Type Name Description
object instance Instance of the class
string name Name of the field
object value New value of the field
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾