IAssetLoader.

OpenAndGetAssembly(Uri, Uri) Method

Summary

Opens the asset with the requested URI and returns the asset stream and the assembly containing the asset.
Namespace
Avalonia.Platform
Containing Type
IAssetLoader

Syntax

(Stream stream, Assembly assembly) OpenAndGetAssembly(Uri uri, Uri baseUri = null)

Parameters

Name Type Description
uri Uri The URI.
baseUri Uri A base URI to use if uri is relative.

Return Value

Type Description
(Stream stream, Assembly assembly) The stream containing the asset contents together with the assembly.