Class HTMLUIBaseAssembly
This class holds the name of the Syncfusion.HTMLUI.Base assembly and provides a helper routine that helps with resolving types when loading a serialization stream and when the framework probes for assemblies by reflection.
Inheritance
Inherited Members
Namespace: Syncfusion
Assembly: Syncfusion.HTMLUI.Base.dll
Syntax
public class HTMLUIBaseAssembly
Constructors
HTMLUIBaseAssembly()
Declaration
public HTMLUIBaseAssembly()
Fields
Assembly
A reference to the System.Reflection.Assembly for the grid assembly.
Declaration
public static readonly Assembly Assembly
Field Value
Type |
---|
System.Reflection.Assembly |
Name
The full name of this assembly without version information: "Syncfusion.HTMLUI.Base".
Declaration
public static readonly string Name
Field Value
Type |
---|
System.String |
RootNamespace
The root namespace of this assembly. Used internally for locating resources within the assembly.
Declaration
public static readonly string RootNamespace
Field Value
Type |
---|
System.String |
Methods
AssemblyResolver(Object, ResolveEventArgs)
This delegate helps with resolving types and can be used as an event handler for a System.AppDomain.AssemblyResolve event.
Declaration
public static Assembly AssemblyResolver(object sender, ResolveEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.ResolveEventArgs | e | The event data with information about the type. |
Returns
Type | Description |
---|---|
System.Reflection.Assembly | A reference to the assembly where the type is located. |
Remarks
Use this handler when reading back types from a serialization stream saved with an earlier version of this assembly.
Examples
public static GridModel LoadSoap(Stream s)
{
try
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(GridAssembly.AssemblyResolver);
SoapFormatter b = new SoapFormatter();
b.AssemblyFormat = FormatterAssemblyStyle.Simple;
GridModel t = b.Deserialize(s) as GridModel;
t.Modified = false;
return t;
}
finally
{
AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(GridAssembly.AssemblyResolver);
}
}