0
Answered

List.remove() Not Supported?

Deniz Ozkaynak 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3

Hi there!

Is a list's Remove() method not supported by Bolt, or am I doing something wrong? This Super Unit flow yields the below error:


NotSupportedException: Operation is not supported.
System.Array.System.Collections.IList.Remove (object) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Array.cs:369)
(wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,System.Collections.IList,object) <il 0x0000c,="" 0x00091="">
Ludiq.InstanceActionInvoker`2<system.collections.ilist, object="">.InvokeUnsafe (object,object) <0x000e7>
Ludiq.InstanceActionInvoker`2<system.collections.ilist, object="">.Invoke (object,object) <0x0014c>
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
Ludiq.InstanceActionInvoker`2[System.Collections.IList,System.Object].Invoke (System.Object target, System.Object arg0) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Optimization/InstanceActionInvoker_1.cs:40)
Ludiq.Member.Invoke (System.Object arg0) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Member.cs:832)
Bolt.InvokeMember.Invoke () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Framework/Codebase/InvokeMember.cs:150)
Bolt.InvokeMember.Enter (Bolt.Flow flow) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Framework/Codebase/InvokeMember.cs:211)
Bolt.ControlInput.Trigger (Bolt.Flow flow) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Ports/ControlInput.cs:77)</system.collections.ilist,></system.collections.ilist,></il>

Any advice would be appreciated!

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Deniz Ozkaynak 3 years ago
+2
Pending Review

Odd, I'll look into it. Can you use the Remove List Item unit from Collections/Lists in the mean time?

Sorry on the late reply, yes Remove List Item does indeed work as expected.