EmbeddedResource MembersNFX Class Library

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

The EmbeddedResource type exposes the following members.
Methods

  NameDescription
Public methodStatic memberGetBinaryContent
Pass a type and resource path rooted at type's namespace, for example given
using (var stream = typeof(SomeType).GetBinary("My.Picture.gif")){...}
If "SomeType" is declared in "TestApp.Types", then statement's resource will have to be embedded under resource named: "TestApp.Types.My.Picture.gif"
Public methodStatic memberGetBinaryStream
Pass a type and resource path rooted at type's namespace, for example given
using (var stream = typeof(SomeType).GetBinary("My.Picture.gif")){...}
If "SomeType" is declared in "TestApp.Types", then statement's resource will have to be embedded under resource named: "TestApp.Types.My.Picture.gif"
Public methodStatic memberGetText
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"
Back to Top
See Also