У меня есть функция с этим кодом: foreach (PropertyInfo propertyInfo in typeof(T).GetProperties()){
//SOME CODE
if (propertyInfo.CanWrite)
propertyInfo.SetValue(myCopy, propertyInfo.GetValue(ob
Дайте класс, как показано ниже, как я могу найти имя одного свойства объекта? public class Student
{
public int Grade
{
get;
set;
}
public string TheNameOfTheGradePro