Skip to content

Commit 1f56a4b

Browse files
committed
Получение через рефлектор значений по умолчанию для параметров
1 parent 0633a20 commit 1f56a4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ScriptEngine/Machine/Reflection/ClassBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,9 @@ private ReflectedMethodInfo CreateMethodInfo(MethodInfo methInfo)
180180
reflectedParam.SetPosition(i);
181181
if (currentParam.HasDefaultValue)
182182
{
183-
183+
reflectedParam.SetDefaultValue(currentParam.DefaultValue);
184184
}
185185

186-
reflectedParam.SetDefaultValue(currentParam.DefaultValue);
187186
if (currentParam.Annotations != null)
188187
{
189188
foreach (var annotation in currentParam.Annotations)

0 commit comments

Comments
 (0)