Click or drag to resize

AssemblyResolver Class

Helper class for resolving assemblies based on file names.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.GenericAssemblyResolver

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class AssemblyResolver

The AssemblyResolver type exposes the following members.

Constructors
  NameDescription
Public methodAssemblyResolver
Initializes a new instance of the AssemblyResolver class
Top
Properties
  NameDescription
Public propertyStatic memberAssemblyVersionString
Build a DHI assembly version string, on the form
"Version=10.0.0.0, Culture=neutral, PublicKeyToken=c513450b5d0bf0bf"
The string will automatically be updated with new version numbers whenever the MIKE version number is incremented.
Top
Methods
  NameDescription
Public methodAddAssembly
Add assembly to list of assemblies, loading by name

If assembly is not loaded, an exception is thrown.

Public methodStatic memberCreateAssemblyLongName
Create a fully qualified assembly name (long name) from its short name. The fully qualified name will automatically be updated with new version numbers whenever the MIKE version number is incremented.

For example if inputting "DHI.Mike1D.Generic", the outcome will be

"DHI.Mike1D.Generic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=c513450b5d0bf0bf"
which can be used directly in the Load(String) method.

Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoadAssembly
Static method to load assembly based on its fully qualified name, or from a file path.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResolveAssembly
Resolve assembly

To bind to

AppDomain.CurrentDomain.AssemblyResolve
event.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldAssemblies
Known assemblies.
Top
See Also