Skip to content

API reference

Class AssetPath

Namespace: MicroEngine.Content
Assembly: MicroEngine.Content.dll
Guide: Assets

Content paths: relative to the source, ‘/’-separated.

C#
public static class AssetPath

Inheritance

object ← AssetPath

Methods

Normalize(string)

‘/’ separators, no leading ‘/’ or “./”, “a/../b” as “b”; the same string when nothing changes, so lookups allocate nothing. A “..” that leaves the source stays, so the source refuses it.

C#
public static string Normalize(string path)

Parameters

path string

Returns

string

Exceptions

ArgumentException

path is null, empty or white space.