Skip to content

M_CodeJam_Strings_StringExtensions_ToInt16

Andrew Koryavchenko edited this page Jun 17, 2018 · 2 revisions

StringExtensions.ToInt16 Method

Converts the string representation of a number in a specified style and culture-specific format to its Int16 equivalent. A return value indicates whether the conversion succeeded.

Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static Nullable<short> ToInt16(
	this string str,
	NumberStyles numberStyle = NumberStyles.Number,
	IFormatProvider