Can I use my own type to create resource in .net assembly I want to be able to do something like this