NamespaceInfo

References
public class NamespaceInfo
Helper class to get information about a namespace and assembly
Remarks: This is used to easily split the namespace and assembly parts from a string, and get the assembly instance. For example, "Eto.Drawing, Eto" will be split into "Eto.Drawing" for the namespace and the Assembly instance for the Eto.dll. Used primarily for serialization and conversion of types.

Constructors

NamespaceInfo

#
public NamespaceInfo(string ns, Assembly assembly)
Initializes a new instance of the NamespaceInfo class.
ns (string)Namespace part in the form of "My.Namespace"
assembly (Assembly)Assembly for the namespace

NamespaceInfo

#
public NamespaceInfo(string ns)
Initializes a new instance of the NamespaceInfo class.

Properties

Assembly

#
public Assembly Assembly { get; set; }
Gets or sets the assembly.

Namespace

#
public string Namespace { get; }
Gets the namespace.

Methods

FindResource

#
public Stream FindResource()
Finds the resource in the Assembly with the specified Namespace

FindResource

#
public Stream FindResource(string resourceName)
Finds the resource in the Namespace of this Assembly
resourceName (string)Resource name without namespace
The resource stream if found, otherwise null

FindType

#
public Type FindType(string typeName)
Finds the specified type in the Namespace of this Assembly
typeName (string)Type name without namespace
The type if found, otherwise null