i have this code to loop through an object and get all of its properties through reflection
foreach (var propertyInfo in typeof(TBase).GetProperties(BindingFlags.Public | BindingFlags.Instance))
{
var oldValue = propertyInfo.GetValue(oldVersion, null);
}
how can i do a check to only look at properties that have a "Set" on them (i want to ignore read only values - just get)