Releases: podNET-Hungary/PodNet.EmbeddedTexts
v1.2.3
v1.2.2
Huge perf optimization! Large files are also embedded extremely fast now, and the memory footprint has been reduced dramatically. Large files above 5MB can see perf gains of up to 98%!
Also, the default number of lines to include in the docs were reduced to 20.
v1.2.1
v1.2.0
🚀 More new features! 🚀
- Set the
PodNet_EmbedTextIsStaticClass
property to make the generated classstatic
. This is technically a breaking change, because originally the generator generatedstatic
classes anyways, but now it defaults tofalse
. - Awesomely, set
PodNet_EmbedTextDirectoryAsClass
totrue
, which will make the content files' containing folder (directory) the name of the generated partial class, with the filename being the property. This results in a type having multiple properties, instead of a type for every property.
🪳 (And fixes!) 🪳
- If by any reason you wanted to share multiple parts of the same partial class, the generator would break, because the virtual file names would conflict. Now, the names are unique (the namespace, class name and property name are included in the virtual file name).
v1.1.1
v1.1.0
New features!
- generate
const
members instead of properties, just supply thePodNet_EmbedTextIsConst="true"
attribute, - name your property/const identifier however you want by supplying your own value in
PodNet_EmbedTextIdentifier
!
Additionally, now the generated properties are not initialized. This is because the file contents are constants embedded into the IL code and are interned either way. Initializing on first access of the class only makes it so that an additional uninitialized pointer (reference) is required. Directly returning the constant results in it directly returning the referenced already-interned string. This won't result in a marked difference either way, and the API surface didn't change either.