AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

StringExtensions..::..ToGuid Method

Parses the string as a Guid, returning null if the string is empty or invalid.

Namespace:  AdvantageCMS.Core.Common
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static Nullable<Guid> ToGuid(
	this string s
)

Parameters

s
Type: String
The string to parse.

Return Value

The parsed Guid, or null if parsing fails.