C# dynamically set property [duplicate] April 26, 2023 by Tarik objName.GetType().GetProperty("nameOfProperty").SetValue(objName, objValue, null)