Table of Contents

Method ParseAndGetBoolOrNull

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ParseAndGetBoolOrNull(string)

Parses the specified parameter name and returns its boolean value if available; otherwise, returns null.

public static bool? ParseAndGetBoolOrNull(string prmName)

Parameters

prmName string

The name of the parameter to parse and evaluate as a boolean value.

Returns

bool?

Returns a nullable boolean value: true if the parameter is set to true, false if set to false, or null if the parameter is not found or cannot be parsed.

Remarks

This method relies on the Default class to perform the parsing operation. Ensure that the Default.Parse() method is called prior to invoking this method to initialize any necessary state.