This website works better with JavaScript.
Home
Explore
Help
Sign In
DaNike
/
BeatSaber-IPA-Reloaded
mirror of
https://github.com/bsmg/BeatSaber-IPA-Reloaded.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
78
Wiki
Activity
Browse Source
Added optimization for trailing assignment in .NET 3
pull/46/head
Anairkoen Schno
5 years ago
parent
751462098c
commit
d175587847
1 changed files
with
4 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
Net3-Proxy/ExpressionEx.cs
+ 4
- 1
Net3-Proxy/ExpressionEx.cs
View File
@ -166,7 +166,10 @@ namespace Net3_Proxy
}
}
Expression
topBody
;
Expression
topBody
;
if
(
lastType
!
=
null
)
if
(
rest
.
Count
=
=
0
)
topBody
=
info
.
Param
;
else
if
(
lastType
!
=
null
)
{
{
var
execSeq
=
ExecuteSequenceTyped
.
MakeGenericMethod
(
lastType
)
;
var
execSeq
=
ExecuteSequenceTyped
.
MakeGenericMethod
(
lastType
)
;
topBody
=
Expression
.
Call
(
null
,
execSeq
,
last
,
Expression
.
NewArrayInit
(
typeof
(
Action
)
,
rest
.
Cast
<
Expression
>
(
)
)
)
;
topBody
=
Expression
.
Call
(
null
,
execSeq
,
last
,
Expression
.
NewArrayInit
(
typeof
(
Action
)
,
rest
.
Cast
<
Expression
>
(
)
)
)
;
Write
Preview
Loading…
Cancel
Save