C# Class Microsoft.Xna.Framework.Content.ContentTypeReaderManager

显示文件 Open project: procfxgen/MGShaderEditor Class Usage Examples

Public Methods

Method Description
AddTypeCreator ( string typeString, Func createFunction ) : void

Adds the type creator.

ClearTypeCreators ( ) : void
GetTypeReader ( Type targetType ) : Microsoft.Xna.Framework.Content.ContentTypeReader
PrepareType ( string type ) : string

Removes Version, Culture and PublicKeyToken from a type string.

Supports multiple generic types (e.g. Dictionary<TKey,TValue>) and nested generic types (e.g. List<List<int>>).

Private Methods

Method Description
ContentTypeReaderManager ( ) : System
LoadAssetReaders ( Microsoft.Xna.Framework.Content.ContentReader reader ) : Microsoft.Xna.Framework.Content.ContentTypeReader[]

Method Details

AddTypeCreator() public static method

Adds the type creator.
public static AddTypeCreator ( string typeString, Func createFunction ) : void
typeString string /// Type string. ///
createFunction Func /// Create function. ///
return void

ClearTypeCreators() public static method

public static ClearTypeCreators ( ) : void
return void

GetTypeReader() public method

public GetTypeReader ( Type targetType ) : Microsoft.Xna.Framework.Content.ContentTypeReader
targetType System.Type
return Microsoft.Xna.Framework.Content.ContentTypeReader

PrepareType() public static method

Removes Version, Culture and PublicKeyToken from a type string.
Supports multiple generic types (e.g. Dictionary<TKey,TValue>) and nested generic types (e.g. List<List<int>>).
public static PrepareType ( string type ) : string
type string /// A ///
return string