Will parse s into T, provided T has a Parse(string) or TryParse(string s, out T t) method defined, or is one of the magical
special cases we've implemented (including ICollection (comma delimited), Nullable and Enums).
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static bool TryParse<T>(
string s,
out T t
)
Public Shared Function TryParse(Of T) (
s As String,
<OutAttribute> ByRef t As T
) As Boolean
public:
generic<typename T>
static bool TryParse(
String^ s,
[OutAttribute] T% t
)
static member TryParse :
s : string *
t : 'T byref -> bool
Parameters
- s
- Type: SystemString
the string to parse - t
- Type: T
the resulting value
Type Parameters
- T
- the type to parse into
Return Value
Type:
Booleantrue, if parsing worked; false, otherwise.
See Also