Click or drag to resize

PropertyUpdater Class

Class for updating properties or fields of an object, based on a string representation of the propery/field.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.GenericPropertyUpdater

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class PropertyUpdater

The PropertyUpdater type exposes the following members.

Constructors
  NameDescription
Public methodPropertyUpdater
Constructor, with base object.
Top
Properties
  NameDescription
Public propertyBaseFilePath
If a parameter is an IFilePath, then this is set as the BaseFilePath
Public propertyBaseObject
Base object being modified
Top
Methods
  NameDescription
Public methodApplyPfsParameter
Apply PFS paramter
Public methodApplyPropertyValue
Apply value to property with name propertyName
Public methodApplyValue
Apply value to member of memberObject.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindProperty
Find property with name in base object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
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);
See Also