Class ContentTypeReaderManager
public sealed class ContentTypeReaderManager
- Inheritance
-
ContentTypeReaderManager
- Inherited Members
Methods
AddTypeCreator(string, Func<ContentTypeReader>)
Adds the type creator.
public static void AddTypeCreator(string typeString, Func<ContentTypeReader> createFunction)
Parameters
typeString
stringType string.
createFunction
Func<ContentTypeReader>Create function.
ClearTypeCreators()
public static void ClearTypeCreators()
GetTypeReader(Type)
public ContentTypeReader GetTypeReader(Type targetType)
Parameters
targetType
Type
Returns
PrepareType(string)
Removes Version, Culture and PublicKeyToken from a type string.
public static string PrepareType(string type)
Parameters
Returns
Remarks
Supports multiple generic types (e.g. Dictionary<TKey,TValue>) and nested generic types (e.g. List<List<int>>).