AssetLoader.

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.Shared.PlatformSupport
Containing Type
AssetLoader

Syntax

public (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 resource contents together with the assembly.