StringConverterTryParse(String, Int32, CultureInfo) Method

Tries to convert the specified string to its System.Int32 (integer) 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 int result,
	CultureInfo? culture = null
)

Parameters

value  String
A string containing the value to convert.
result  Int32
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