Show / Hide Table of Contents

Class ConversionUtils

Helpers for working with type converters.

Inheritance
Object
ConversionUtils
Namespace: NanoByte.Common.Values
Assembly: NanoByte.Common.dll
Syntax
public static class ConversionUtils : Object

Methods

ConvertFromString<TType>(String)

Uses the type converter for TType (set with TypeConverterAttribute) to parse a string.

Declaration
public static TType ConvertFromString<TType>(this string value)
Parameters
Type Name Description
String value
Returns
Type Description
TType
Type Parameters
Name Description
TType

ConvertToString<TType>(TType)

Uses the type converter for TType (set with TypeConverterAttribute) to generate a string.

Declaration
public static string ConvertToString<TType>(this TType value)
Parameters
Type Name Description
TType value
Returns
Type Description
String
Type Parameters
Name Description
TType
In This Article
Back to top Copyright Bastian Eicher