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
Formatter

Methods

GetType(String)

Gets the 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 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 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 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 Type was found, false otherwise.