Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LightDelegateCreator.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
3
namespace
System.Linq.Expressions.Interpreter
;
4
5
internal
sealed
class
LightDelegateCreator
6
{
7
private
readonly
LambdaExpression
_lambda
;
8
9
internal
Interpreter
Interpreter
{
get
; }
10
11
internal
LightDelegateCreator
(
Interpreter
interpreter,
LambdaExpression
lambda)
12
{
13
Interpreter
= interpreter;
14
_lambda
= lambda;
15
}
16
17
public
Delegate
CreateDelegate
()
18
{
19
return
CreateDelegate
(
null
);
20
}
21
22
internal
Delegate
CreateDelegate
(
IStrongBox
[] closure)
23
{
24
return
new
LightLambda
(
this
, closure).
MakeDelegate
(
_lambda
.
Type
);
25
}
26
}
System.Delegate
Definition
Delegate.cs:12
System.Linq.Expressions.Interpreter.Interpreter
Definition
Interpreter.cs:7
System.Linq.Expressions.Interpreter.LightDelegateCreator.CreateDelegate
Delegate CreateDelegate(IStrongBox[] closure)
Definition
LightDelegateCreator.cs:22
System.Linq.Expressions.Interpreter.LightDelegateCreator.CreateDelegate
Delegate CreateDelegate()
Definition
LightDelegateCreator.cs:17
System.Linq.Expressions.Interpreter.LightDelegateCreator.LightDelegateCreator
LightDelegateCreator(Interpreter interpreter, LambdaExpression lambda)
Definition
LightDelegateCreator.cs:11
System.Linq.Expressions.Interpreter.LightDelegateCreator._lambda
readonly LambdaExpression _lambda
Definition
LightDelegateCreator.cs:7
System.Linq.Expressions.Interpreter.LightDelegateCreator
Definition
LightDelegateCreator.cs:6
System.Linq.Expressions.Interpreter.LightLambda.MakeDelegate
Delegate MakeDelegate(Type delegateType)
Definition
LightLambda.cs:175
System.Linq.Expressions.Interpreter.LightLambda
Definition
LightLambda.cs:13
System.Linq.Expressions.LambdaExpression.Type
override Type Type
Definition
LambdaExpression.cs:19
System.Linq.Expressions.LambdaExpression
Definition
LambdaExpression.cs:14
System.Runtime.CompilerServices.IStrongBox
Definition
IStrongBox.cs:4
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
LightDelegateCreator.cs
Generated by
1.10.0