LSL.Resources
A library to ease the pain of reading resources from an assembly. All helper methods use string.EndsWith to ease the pain of searching for resources.
NOTE: When searching for a resource they are ordered in full name order and the first matching resource is selected.
The main helper methods cover:
- Obtaining a
Streamfor a matched resource. - Reading string content for a matched resource.
- Reading a matched resource as
JSON.- These methods use the full type name to match a resource name (with the extension
.json) - System.Text.Json is used for deserialization
- These methods use the full type name to match a resource name (with the extension