StringConverterTryParse(String, UInt16, CultureInfo) Method

Tries to convert the specified string to its System.UInt16 (unsigned short) equivalent.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static bool TryParse(
	ref string value,
	out ushort result,
	CultureInfo? culture = null
)

Parameters

value  String
A string containing the value to convert.
result  UInt16
If the conversion succeeded, contains the value.
culture  CultureInfo  (Optional)
An object that provides culture-specific formatting information.

Return Value

Boolean
if value was converted successfully.

See Also