Show / Hide Table of Contents

Interface IConstantLoader

Defines a set of members that must be implemented by a type that can load constant values into an MSIL instruction sequence.

Namespace: TheXDS.MCART.Types.Extensions.ConstantLoaders
Assembly: MCART.TypeFactory.dll
Syntax
public interface IConstantLoader

Properties

| Edit this page View Source

ConstantType

Gets the type of constant that this IConstantLoader can load into the MSIL instruction sequence.

Declaration
Type ConstantType { get; }
Property Value
Type Description
Type

Methods

| Edit this page View Source

CanLoadConstant(object?)

Indicates if the specified value can be loaded using this instance.

Declaration
bool CanLoadConstant(object? value)
Parameters
Type Name Description
object value

Value to be loaded.

Returns
Type Description
bool

true if the specified value can be loaded using this instance, false otherwise.

| Edit this page View Source

Emit(ILGenerator, object?)

Loads a constant value into the MSIL instruction sequence.

Declaration
void Emit(ILGenerator il, object? value)
Parameters
Type Name Description
ILGenerator il

IL generator to use.

object value

Constant value to load into the instruction sequence.

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