Table of Contents

Class Formatter

Namespace
Cuemon.Runtime.Serialization.Formatters
Assembly
Cuemon.Core.dll

Provides a set of static methods that complements serialization and deserialization of an object.

public static class Formatter
Inheritance
Object
Formatter

Methods

GetType(String)

Gets the System.Type with the specified typeName, performing a case-sensitive search.

public static Type GetType(string typeName)

Parameters

typeName String

The assembly-qualified name of the type to get. See System.Type.AssemblyQualifiedName. If the type is in the currently executing assembly or in mscorlib.dll/System.Private.CoreLib.dll, it is sufficient to supply the type name qualified by its namespace.

Returns

Type

The type with the specified typeName. If the type is not found, null is returned.

TryGetType(String, out Type)

Attempts to get the System.Type with the specified typeName, performing a case-sensitive search.

public static bool TryGetType(string typeName, out Type type)

Parameters

typeName String

The assembly-qualified name of the type to get. See System.Type.AssemblyQualifiedName. If the type is in the currently executing assembly or in mscorlib.dll/System.Private.CoreLib.dll, it is sufficient to supply the type name qualified by its namespace.

type Type

The type with the specified typeName. If the type is not found, null is returned.

Returns

Boolean

true if the System.Type was found, false otherwise.