I have it:
public string Log { get { return log; } protected set { if (log != value) { MarkModified(PropertyNames.Log, log); log = value; } } }
And my data binding utility class does this:
PropertyInfo pi = ReflectionHelper.GetPropertyInfo(boundObjectType, sourceProperty); if (!pi.CanWrite) SetReadOnlyCharacteristics(boundEditor);
But PropertyInfo.CanWrite does not care about whether the collection is publicly available, only that it exists.
How to determine if there is a public , and not just any ?
Josh kodroff
source share