Show / Hide Table of Contents

Class EventBuildInfo

Contiene información sobre la definición de eventos en tipos construidos en Runtime.

Inheritance
object
EventBuildInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types
Assembly: MCART.TypeFactory.dll
Syntax
public class EventBuildInfo

Properties

| Edit this page View Source

AddMethod

Obtiene una referencia al método utilizado para subscribir un manejador de eventos al evento representado por esta instancia.

Declaration
public MethodBuilder AddMethod { get; }
Property Value
Type Description
MethodBuilder
Remarks

El delegado representado por esta propiedad será compatible con la firma Action<T> donde el primer argumento de tipo será EventArgs o un tipo que derive de esta clase.

| Edit this page View Source

HandlerField

Obtiene una referencia al campo utilizado para contener la referencia activa del manejador de eventos a llamar cuando se produzca el evento.

Declaration
public FieldBuilder HandlerField { get; }
Property Value
Type Description
FieldBuilder
| Edit this page View Source

Name

Contiene el nombre definido para el evento representado por esta instancia.

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

RaiseMethod

Obtiene una referencia a un método a utilizar para generar el evento representado por esta instancia.

Declaration
public MethodBuilder RaiseMethod { get; }
Property Value
Type Description
MethodBuilder
Remarks

El delegado representado por esta propiedad será compatible con la firma Action<T1, T2> donde el primer argumento de tipo será un tipo en particular u object, y el segundo será EventArgs o un tipo que derive de esta clase.

| Edit this page View Source

RemoveMethod

Obtiene una referencia al método utilizado para remover la subscripción de un manejador de eventos al evento representado por esta instancia.

Declaration
public MethodBuilder RemoveMethod { get; }
Property Value
Type Description
MethodBuilder
Remarks

El delegado representado por esta propiedad será compatible con la firma Action<T> donde el primer argumento de tipo será EventArgs o un tipo que derive de esta clase.

Methods

| Edit this page View Source

Create<TEventHandler, TSender, TEventArgs>(TypeBuilder, string)

Crea un nuevo evento en el TypeBuilder especificado, agregando los métodos accesorios requeridos por el mismo.

Declaration
public static EventBuildInfo Create<TEventHandler, TSender, TEventArgs>(TypeBuilder builder, string name) where TEventHandler : Delegate where TEventArgs : EventArgs
Parameters
Type Name Description
TypeBuilder builder

TypeBuilder en el cual se creará el nuevo evento y sus métodos auxiliares requeridos.

string name

Nombre del nuevo evento.

Returns
Type Description
EventBuildInfo

Un EventBuildInfo que contiene información sobre el evento que ha sido definido.

Type Parameters
Name Description
TEventHandler

Delegado del manejador de eventos. Debe seguir la firma estándar de un manejador de eventos, es decir, debe ser un método con tipo de retorno void, y debe contener un argumento de tipo TSender (generalmente, se prefiere el tipo object) y un argumento de tipo TEventArgs.

TSender

Tipo del objeto que genera el evento. Puede utilizarse object.

TEventArgs

Tipo de argumentos de evento a pasar cuando se produzca el evento.

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX