121 lc.EmitClosureArgument();
134 if (
type.IsValueType)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool TryAdd(TKey key, TValue value)
void Add(TKey key, TValue value)
static ReferenceEqualityComparer Instance
static FieldInfo Closure_Constants
void AddReference(object value, Type type)
void EmitConstantFromArray(LambdaCompiler lc, object value, Type type)
void EmitConstant(LambdaCompiler lc, object value, Type type)
readonly List< object > _values
void EmitCacheConstants(LambdaCompiler lc)
static void EmitConstantsArray(LambdaCompiler lc)
readonly Dictionary< object, int > _indexes
static bool ShouldCache(int refCount)
readonly Dictionary< TypedConstant, LocalBuilder > _cache
readonly Dictionary< TypedConstant, int > _references
static readonly OpCode Castclass
static readonly OpCode Unbox_Any
static readonly OpCode Stloc
static readonly OpCode Ldfld
static readonly OpCode Ldelem_Ref
static readonly OpCode Ldloc
static readonly OpCode Dup
static int GetHashCode(object? o)
override bool Equals(object? o)
override int GetHashCode()
TypedConstant(object value, Type type)
override bool Equals([NotNullWhen(true)] object obj)
override int GetHashCode()
bool Equals(TypedConstant other)