Click or drag to resize

ModelStateWriterHandleOptionalParameter Method

Helper method for handling optional parameters: If the parameter is optional, and the current object is optional (there is something in the list of optional objects), this parameter value is added to the list of parameters in the optional object.

If the parameter is not optional, but the current object is optional, all optional objects and parameters are added to the state.

Namespace:  DHI.Mike1D.ModelState
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
protected bool HandleOptionalParameter(
	string parameterName,
	Object value,
	bool optional
)

Parameters

parameterName
Type: SystemString

[Missing <param name="parameterName"/> documentation for "M:DHI.Mike1D.ModelState.ModelStateWriter.HandleOptionalParameter(System.String,System.Object,System.Boolean)"]

value
Type: SystemObject

[Missing <param name="value"/> documentation for "M:DHI.Mike1D.ModelState.ModelStateWriter.HandleOptionalParameter(System.String,System.Object,System.Boolean)"]

optional
Type: SystemBoolean

[Missing <param name="optional"/> documentation for "M:DHI.Mike1D.ModelState.ModelStateWriter.HandleOptionalParameter(System.String,System.Object,System.Boolean)"]

Return Value

Type: Boolean
Returns true if this was an optional parameter
See Also