Class SafeConvert
Inherited Members
Namespace: Glitch9
Assembly: Glitch9.dll
Syntax
public static class SafeConvert
Methods
| Edit this page View SourceTryConvert<T>(string, out T)
- Safely converts a string to T without throwing.
- Supports nullable types, enums, bool, and primitive numeric types.
Declaration
public static bool TryConvert<T>(string input, out T converted)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | |
| T | converted |
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| T |