how to set value to property in c# code example
Example 1: c# get set
public class Employ
{
public string Name { get; set; }
}
Example 2: c# object set property
myObject.GetType().GetProperty(property).SetValue(myObject, "Bob", null);
public class Employ
{
public string Name { get; set; }
}
myObject.GetType().GetProperty(property).SetValue(myObject, "Bob", null);