Can I use my own type to create resource in .net assembly

  Kiến thức lập trình

I want to be able to do something like this

<data name="IMAGES_RECT_PNG" type="My.Tools.TaggedContent, My.Tools">
  <value>WebContentimagesrect.png</value>
</data>

so that later I can access this resource as

Resources.ResourceManager.GetObject(key, CultureInfo.CurrentCulture) as TaggedContent;

TaggedContent signs the resource.

I’ve seen such code in .NET Framework but can’t find any documentation on it and need it for .NET Core.

LEAVE A COMMENT