Search
Converter.ToInt32 Method (String, Int32)
See Also
 





Converts the specified string value to 32-bit integer without throwing exceptions. In case the specified string cannot be converted, the specified default value is returned.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static int ToInt32 (
    string s,
    int defaultValue
)

Visual Basic  Copy Code

Public Shared Function ToInt32( _
    s As String, _
    defaultValue As Integer _
) As Integer

 Parameters

s

The string value to convert from.

defaultValue

The default value to return if s cannot be deserialized.

 Return Value

A 32-bit integer value that is deserialized from the specified string.

 See Also