Extensions for Assemblies
public static class AssemblyExt
Inheritance System.Object AssemblyExt
Gets the contents of an embedded file in this assembly as json object
public static JObject GetEmbeddedJson(this System.Reflection.Assembly assembly, string endsWith);
assembly System.Reflection.Assembly
endsWith System.String
Gets the bytes for an embedded resource with the given name (found with endsWith), or null if no matches
public static System.IO.Stream GetEmbeddedResource(this System.Reflection.Assembly assembly, string endsWith);
assembly System.Reflection.Assembly
endsWith System.String
Gets the contents of an embedded file in this assembly as plain text (UTF8)
public static string GetEmbeddedText(this System.Reflection.Assembly assembly, string endsWith);
assembly System.Reflection.Assembly
endsWith System.String
Gets the contents of an embedded file in this assembly as json object
public static bool TryGetEmbeddedJson(this System.Reflection.Assembly assembly, string endsWith, out JObject jObject);
assembly System.Reflection.Assembly
endsWith System.String
jObject Newtonsoft.Json.Linq.JObject
Gets the bytes for an embedded resource with the given name (found with endsWith), or null if no matches
public static bool TryGetEmbeddedResource(this System.Reflection.Assembly assembly, string endsWith, out System.IO.Stream stream);
assembly System.Reflection.Assembly
endsWith System.String
stream System.IO.Stream
Gets the contents of an embedded file in this assembly as plain text (UTF8)
public static bool TryGetEmbeddedText(this System.Reflection.Assembly assembly, string endsWith, out string text);
assembly System.Reflection.Assembly
endsWith System.String
text System.String