Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int? ParseIntOrNull(this string, NumberStyles, IFormatProvider)

Declaration

public static int? ParseIntOrNull(
    this string str,
    NumberStyles style = Integer,
    IFormatProvider provider = null
)

Summary

Parses this string as an int using int.TryParse(string, out int). Returns null if the value cannot be parsed.