Skip to content

Build status Coveralls branch NuGet

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 Stream for 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