WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLUIBaseAssembly

    Show / Hide Table of Contents

    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
    System.Object
    HTMLUIBaseAssembly
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    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 Description
    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);
    			}
    		}
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved