Helper for resources in Avalonia.
More...
|
static string | ValidateResource (string resourcePath, string? resourceAssembly=null) |
| Validates a given resource path.
|
|
static string | LoadText (string resourcePath, string? resourceAssembly=null) |
| Reads a resource as text.
|
|
static async Task< string > | LoadTextAsync (string resourcePath, string? resourceAssembly=null) |
| Reads a resource as text asynchronously.
|
|
static byte[] | LoadBinary (string resourcePath, string? resourceAssembly=null) |
| Reads a resource as binary.
|
|
static async Task< byte[]> | LoadBinaryAsync (string resourcePath, string? resourceAssembly=null) |
| Reads a resource as binary asynchronously.
|
|
|
static ? string | ResourceAssembly [get, set] |
| Main assembly containing the resources.
|
|
Helper for resources in Avalonia.
◆ LoadBinary()
static byte[] BogaNet.Helper.ResourceHelper.LoadBinary |
( |
string | resourcePath, |
|
|
string? | resourceAssembly = null ) |
|
static |
Reads a resource as binary.
- Parameters
-
resourcePath | |
resourceAssembly | Assembly with the resource (optional, default: ResourceAssembly) |
- Returns
- Binary data from the given resource
- Exceptions
-
◆ LoadBinaryAsync()
static async Task< byte[]> BogaNet.Helper.ResourceHelper.LoadBinaryAsync |
( |
string | resourcePath, |
|
|
string? | resourceAssembly = null ) |
|
static |
Reads a resource as binary asynchronously.
- Parameters
-
resourcePath | |
resourceAssembly | Assembly with the resource (optional, default: ResourceAssembly) |
- Returns
- Binary data from the given resource
- Exceptions
-
◆ LoadText()
static string BogaNet.Helper.ResourceHelper.LoadText |
( |
string | resourcePath, |
|
|
string? | resourceAssembly = null ) |
|
static |
Reads a resource as text.
- Parameters
-
resourcePath | |
resourceAssembly | Assembly with the resource (optional, default: ResourceAssembly) |
- Returns
- Text from the given resource
- Exceptions
-
◆ LoadTextAsync()
static async Task< string > BogaNet.Helper.ResourceHelper.LoadTextAsync |
( |
string | resourcePath, |
|
|
string? | resourceAssembly = null ) |
|
static |
Reads a resource as text asynchronously.
- Parameters
-
resourcePath | |
resourceAssembly | Assembly with the resource (optional, default: ResourceAssembly) |
- Returns
- Text from the given resource
- Exceptions
-
◆ ValidateResource()
static string BogaNet.Helper.ResourceHelper.ValidateResource |
( |
string | resourcePath, |
|
|
string? | resourceAssembly = null ) |
|
static |
Validates a given resource path.
- Parameters
-
resourcePath | Resource path to validate |
resourceAssembly | Assembly with the resource (optional, default: ResourceAssembly) |
- Returns
- Validated resource path
- Exceptions
-
◆ ResourceAssembly
? string BogaNet.Helper.ResourceHelper.ResourceAssembly |
|
staticgetset |
Main assembly containing the resources.
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Avalonia/Helper/ResourceHelper.cs