Table of Contents

Interface IAssetParser

Namespace
Icy.Assets.Parsers
Assembly
IcyUI.dll

Represents an interface for services that parse assets from the specified data formats.

public interface IAssetParser
Extension Methods

Properties

Format

Gets the format for the serialization.

string Format { get; }

Property Value

string

Methods

Parse(Stream, Type)

Performs the deserialization from the specified data stream.

object Parse(Stream stream, Type targetType)

Parameters

stream Stream

Stream to read data from.

targetType Type

Requested type to load.

Returns

object

An instance of the deserialized object.

Parse<T>(Stream)

Performs the deserialization from the specified data stream.

T Parse<T>(Stream stream)

Parameters

stream Stream

Stream to read data from.

Returns

T

An instance of the deserialized object.

Type Parameters

T

Requested type to load.