TelerikUtils
Provides common helpers for value swapping, resource URIs, enum parsing, and designer detection.
Definition
Namespace:Telerik.WinForms.Documents.Utils
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public static class TelerikUtils
Inheritance: objectTelerikUtils
Methods
Parses a string into the target value type, optionally ignoring case.
public static bool EnumTryParse<TEnum>(string valueAsString, bool ignoreCase, out TEnum value) where TEnum : struct
The text to parse.
ignoreCasebooltrue to ignore case when matching names; otherwise, false.
valueTEnumReceives the parsed value, or the default value of TEnum if parsing fails.
For enum types, a numeric string can parse successfully even when it does not name a declared member.
Parses a string into the target value type using case-sensitive matching.
public static bool EnumTryParse<TEnum>(string valueAsString, out TEnum value) where TEnum : struct
The text to parse.
valueTEnumReceives the parsed value, or the default value of TEnum if parsing fails.
For enum types, a numeric string can parse successfully even when it does not name a declared member.
Exchanges the values held by two references.
public static void Swap<T>(ref T first, ref T second)
The first value to exchange.
secondTThe second value to exchange.