StringExtensions..::..TryParse Method (String, array<String>[]()[][], IFormatProvider, DateTimeStyles, DateTime%)

Tries the parse.

Namespace:  MichaelBrandonMorris.Extensions.PrimitiveExtensions
Assembly:  MichaelBrandonMorris.Extensions.PrimitiveExtensions (in MichaelBrandonMorris.Extensions.PrimitiveExtensions.dll)

Syntax


public static bool TryParse(
	string s,
	string[] formats,
	IFormatProvider provider,
	DateTimeStyles style,
	out DateTime result
)
Public Shared Function TryParse ( _
	s As String, _
	formats As String(), _
	provider As IFormatProvider, _
	style As DateTimeStyles, _
	<OutAttribute> ByRef result As DateTime _
) As Boolean
public:
static bool^ TryParse(
	String^ s, 
	array<String^>^ formats, 
	IFormatProvider^ provider, 
	DateTimeStyles^ style, 
	[OutAttribute] DateTime^% result
)

Parameters

s
Type: String
The s.
formats
Type: array<String>[]()[][]
The formats.
provider
Type: IFormatProvider
The provider.
style
Type: DateTimeStyles
The style.
result
Type: DateTime%
The result.

Return Value

true if XXXX, false otherwise.