Syncfusion.Tools.Base
This class holds the name of the Tools 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.
The full name of this assembly without version information, e.g. "Syncfusion.Tools".
A reference to the for the Tools assembly.
The root namespace of this assembly. Used internally for locating resources within the assembly.
This delegate helps with resolving types and can be used as an eventhandler
for a event.
The source of the event.
The event data with information about the type.
A reference to the assembly where the type is located.
If the requested assembly is either Tools, Grid, or Shared, this method returns the reference
to the corresponding assembly, it is bound to.
It's mandatory that you distribute Syncfusion.Grid.dll and Syncfusion.Shared.dll when you use this
method in your application.
Use this handler when reading back types from a serialization stream
saved with an earlier version of this assembly.
public static AToolsType LoadSoap(Stream s)
{
try
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(ToolsAssembly.AssemblyResolver);
SoapFormatter b = new SoapFormatter();
b.AssemblyFormat = FormatterAssemblyStyle.Simple;
AToolsType t = b.Deserialize(s) as AToolsType;
return t;
}
finally
{
AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(ToolsAssembly.AssemblyResolver);
}
}