WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TypesToLoadList - WindowsForms API Reference | Syncfusion TypeNames and invoke a member in those types. ">

    Show / Hide Table of Contents

    Class TypesToLoadList

    Lets you specify a list of TypeNames and invoke a member in those types.

    Inheritance
    System.Object
    System.Collections.ArrayList
    ArrayListExt
    TypesToLoadList
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    Inherited Members
    ArrayListExt.OnCollectionChanging()
    ArrayListExt.ReleaseHandler(Object)
    ArrayListExt.AddHandlers(Object)
    ArrayListExt.RaiseCollectionChanged(CollectionChangeEventArgs)
    ArrayListExt.Add(Object)
    ArrayListExt.Insert(Int32, Object)
    ArrayListExt.InsertRange(Int32, ICollection)
    ArrayListExt.Clear()
    ArrayListExt.RemoveAt(Int32)
    ArrayListExt.RemoveRange(Int32, Int32)
    ArrayListExt.Sort(Int32, Int32, IComparer)
    ArrayListExt.Reverse(Int32, Int32)
    ArrayListExt.Move(Int32, Int32, Int32)
    ArrayListExt.SuspendEvents()
    ArrayListExt.ResumeEvents(Boolean)
    ArrayListExt.ForceReadOnly
    ArrayListExt.ForceFixedSize
    ArrayListExt.IsFixedSize
    ArrayListExt.IsReadOnly
    ArrayListExt.IsCollectionChangedEventSuspended
    ArrayListExt.CollectionChanged
    ArrayListExt.ItemPropertyChanged
    System.Collections.ArrayList.Adapter(System.Collections.IList)
    System.Collections.ArrayList.AddRange(System.Collections.ICollection)
    System.Collections.ArrayList.BinarySearch(System.Int32, System.Int32, System.Object, System.Collections.IComparer)
    System.Collections.ArrayList.BinarySearch(System.Object)
    System.Collections.ArrayList.BinarySearch(System.Object, System.Collections.IComparer)
    System.Collections.ArrayList.Clone()
    System.Collections.ArrayList.Contains(System.Object)
    System.Collections.ArrayList.CopyTo(System.Array)
    System.Collections.ArrayList.CopyTo(System.Array, System.Int32)
    System.Collections.ArrayList.CopyTo(System.Int32, System.Array, System.Int32, System.Int32)
    System.Collections.ArrayList.FixedSize(System.Collections.IList)
    System.Collections.ArrayList.FixedSize(System.Collections.ArrayList)
    System.Collections.ArrayList.GetEnumerator()
    System.Collections.ArrayList.GetEnumerator(System.Int32, System.Int32)
    System.Collections.ArrayList.IndexOf(System.Object)
    System.Collections.ArrayList.IndexOf(System.Object, System.Int32)
    System.Collections.ArrayList.IndexOf(System.Object, System.Int32, System.Int32)
    System.Collections.ArrayList.LastIndexOf(System.Object)
    System.Collections.ArrayList.LastIndexOf(System.Object, System.Int32)
    System.Collections.ArrayList.LastIndexOf(System.Object, System.Int32, System.Int32)
    System.Collections.ArrayList.ReadOnly(System.Collections.IList)
    System.Collections.ArrayList.ReadOnly(System.Collections.ArrayList)
    System.Collections.ArrayList.Remove(System.Object)
    System.Collections.ArrayList.Repeat(System.Object, System.Int32)
    System.Collections.ArrayList.Reverse()
    System.Collections.ArrayList.SetRange(System.Int32, System.Collections.ICollection)
    System.Collections.ArrayList.GetRange(System.Int32, System.Int32)
    System.Collections.ArrayList.Sort()
    System.Collections.ArrayList.Sort(System.Collections.IComparer)
    System.Collections.ArrayList.Synchronized(System.Collections.IList)
    System.Collections.ArrayList.Synchronized(System.Collections.ArrayList)
    System.Collections.ArrayList.ToArray()
    System.Collections.ArrayList.ToArray(System.Type)
    System.Collections.ArrayList.TrimToSize()
    System.Collections.ArrayList.Capacity
    System.Collections.ArrayList.Count
    System.Collections.ArrayList.IsSynchronized
    System.Collections.ArrayList.SyncRoot
    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.Reflection
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class TypesToLoadList : ArrayListExt, IList, ICollection, IEnumerable, ICloneable
    Remarks

    This class is used in Essential Tools to load certain types in memory.

    Once you add the types to load into this list, you can call the InitInvokeMemberSettings(String, BindingFlags, Binder, Object[], ParameterModifier[], CultureInfo, String[]) method to specify a member in those types to invoke and then also call InvokeMemberOnExisitingTypes() later to repeat the invoke.

    Constructors

    TypesToLoadList()

    Declaration
    public TypesToLoadList()

    Properties

    ArgsCount

    Returns the number of arguments to be used in the method call when invoked.

    Declaration
    public int ArgsCount { get; }
    Property Value
    Type Description
    System.Int32
    Remarks

    This will be zero if invoking a property. Call InitInvokeMemberSettings(String, BindingFlags, Binder, Object[], ParameterModifier[], CultureInfo, String[]) to reset this property.

    InvokeMemberName

    Returns the static member name to invoke.

    Declaration
    public string InvokeMemberName { get; set; }
    Property Value
    Type Description
    System.String

    Item[Int32]

    Gets / sets the indexer for this list.

    Declaration
    public TypeName this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    TypeName

    Specifies the TypeName object at this index.

    Methods

    GetArg(Int32)

    Returns the argument at the specified index, that will be used during invoking.

    Declaration
    public object GetArg(int i)
    Parameters
    Type Name Description
    System.Int32 i

    The argument index.

    Returns
    Type Description
    System.Object

    The argument at the specified index. NULL if index is out of range.

    InitInvokeMemberSettings(String, BindingFlags, Binder, Object[], ParameterModifier[], CultureInfo, String[])

    Call this method to provide information for the member invoke.

    Declaration
    public void InitInvokeMemberSettings(string memberName, BindingFlags invokeAttr, Binder binder, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
    Parameters
    Type Name Description
    System.String memberName
    System.Reflection.BindingFlags invokeAttr
    System.Reflection.Binder binder
    System.Object[] args
    System.Reflection.ParameterModifier[] modifiers
    System.Globalization.CultureInfo culture
    System.String[] namedParameters
    Remarks

    Take a look at System.Type.InvokeMember(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object,System.Object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,System.String[]) method for information on these parameters. This method will also call InvokeMemberOnExisitingTypes().

    InvokeMemberOnExisitingTypes()

    Invokes the member specified using InitInvokeMemberSettings(String, BindingFlags, Binder, Object[], ParameterModifier[], CultureInfo, String[]) on the specified types in this list.

    Declaration
    [Obsolete("InvokeMemberOnExisitingTypes method is deprecated, please use InvokeMemberOnExisistingTypes method.")]
    public void InvokeMemberOnExisitingTypes()

    InvokeMemberOnExistingTypes()

    Invokes the member specified using InitInvokeMemberSettings(String, BindingFlags, Binder, Object[], ParameterModifier[], CultureInfo, String[]) on the specified types in this list.

    Declaration
    public void InvokeMemberOnExistingTypes()

    InvokeMemberOnType(TypeName)

    Invokes the member on each type.

    Declaration
    protected void InvokeMemberOnType(TypeName typename)
    Parameters
    Type Name Description
    TypeName typename

    The TypeName on which to invoke.

    OnCollectionChanged(CollectionChangeEventArgs)

    Declaration
    protected override void OnCollectionChanged(CollectionChangeEventArgs args)
    Parameters
    Type Name Description
    System.ComponentModel.CollectionChangeEventArgs args
    Overrides
    ArrayListExt.OnCollectionChanged(CollectionChangeEventArgs)

    OnItemPropertyChanged(Object, SyncfusionPropertyChangedEventArgs)

    Declaration
    protected override void OnItemPropertyChanged(object sender, SyncfusionPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender
    SyncfusionPropertyChangedEventArgs e
    Overrides
    ArrayListExt.OnItemPropertyChanged(Object, SyncfusionPropertyChangedEventArgs)

    Events

    TypeNotFound

    Fired when a type to invoke is not found.

    Declaration
    public event TypeNotFoundEventHandler TypeNotFound
    Event Type
    Type Description
    Syncfusion.Reflection.TypeNotFoundEventHandler

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved