PhoenixmlDb.XSLT

XsltModuleInitializer

Auto-registers with when the assembly is loaded, so any application that references PhoenixmlDb.Xslt gets fn:transform() wired up automatically — no explicit TransformFunction.Provider = new XsltTransformProvider() call needed.

#XsltModuleInitializer

Namespace: PhoenixmlDb.Xslt

Auto-registers with when the assembly is loaded, so any application that references PhoenixmlDb.Xslt gets fn:transform() wired up automatically — no explicit TransformFunction.Provider = new XsltTransformProvider() call needed.

The runtime invokes a [ModuleInitializer] method exactly once, the first time any type in this assembly is touched. That happens when the application loads PhoenixmlDb.Xslt — typically by referencing it. As long as the assembly is in the build output (e.g. via PackageReference or ProjectReference), fn:transform() is available. Callers who explicitly set later still win; the initializer only fires on first load and only assigns when no provider is registered.