This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
What I hope is a quick answer, how do you set use Many<T> objects? For example: I have two Enum properties (one is a flag enum). If they are inconsistent then they are need to be reset before being able to be edited. However if they are consistent, how do you set the value for all objects? Many.Values is a IEnumerable and Many.RawValue is read-only. Do use the PropertyInfo.SetValue()?
|
|
|
Many<T> has a read-write Value property. (It's declared on Many<T> rather than Many because the property grid relies on the property type to do its thing.) Cast your Many to a Many<MyEnum> and party on. |
|