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.

Definition

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

Parameters

parameterName  String

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

value  Object

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

optional  Boolean

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

Return Value

Boolean
Returns true if this was an optional parameter

See Also