EmbeddedResource GetText Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Pass a type and resource path rooted at type's namespace, for example given
string sql = typeof(SomeType).GetText("SQL.User.Insert.sql");
If "SomeType" is declared in "TestApp.Types", then statement's resource will have to be embedded under resource named: "TestApp.Types.SQL.User.Insert.sql"

Namespace: NFX
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static string GetText(
	this Type scopingType,
	string scriptName
)

Return Value

Type: OnlineString

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineType. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also