Class AssemblyExtensions
Inheritance
System.Object
AssemblyExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public static class AssemblyExtensions
Methods
| Improve this Doc View SourceFindAndGetManifestResourceStream(Assembly, Type, String)
Aggressively searches for a resource and, if found, returns an open System.IO.Stream where it can be read.
Declaration
public static Stream FindAndGetManifestResourceStream(this Assembly assembly, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | this assembly |
System.Type | type | a type in the same namespace as the resource |
System.String | name | the resource name to locate |
Returns
Type | Description |
---|---|
System.IO.Stream | an open System.IO.Stream that can be used to read the resource, or |
FindResource(Assembly, Type, String)
Aggressively searches to find a resource based on a System.Type and resource name.
Declaration
public static string FindResource(this Assembly assembly, Type type, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | this assembly |
System.Type | type | a type in the same namespace as the resource |
System.String | name | the resource name to locate |
Returns
Type | Description |
---|---|
System.String | the resource, if found; if not found, returns |