ReflectionUtilities.SetPropertyValue - метод Смотри также Terrasoft.Common - пространство имен > ReflectionUtilities - класс : SetPropertyValue - метод C#
- source
- Type.
- propertyName
- Property name.
- value
- The value of the property.
Glossary Item Box
Параметры
- source
- Type.
- propertyName
- Property name.
- value
- The value of the property.
Исключение | Описание |
---|---|
ArgumentNullOrEmptyException | If the empty or null value is passed as a propertyName parameter. |
InvalidObjectStateException | If the instance of the current type does not contain a property with name propertyName or if the propertyName property is write-only. |
InvalidTypeCastException | If the type of the propertyName property is incompatible with the type of the assigned value value. |
The extension method for the System.Object class.