PropertyUpdater Class

Class for updating properties or fields of an object, based on a string representation of the propery/field.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class PropertyUpdater
Inheritance
Object    PropertyUpdater

Example

To update the the Delh property of a Mike1DData object: Mike1DData mike1DData = [...] PropertyUpdater updater = new PropertyUpdater(mike1DData); updater.ApplyPropertyValue("HDParameters.SolverSettings.Delh", "0.12", diagnostics);

Constructors

PropertyUpdater Constructor, with base object.

Properties

BaseFilePath If a parameter is an FilePath, then this is set as the BaseFilePath
BaseObject Base object being modified

Methods

ApplyPfsParameter Apply PFS paramter
ApplyPropertyValue Apply value to property with name propertyName
ApplyValue Apply value to member of memberObject.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FindProperty 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also