You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a non-overloaded method, passing an integer works where an enum is expected. When calling an overloaded method, this integer doesn't seem to be enough to push overload resolution in the right direction.
In R:
library(rClr)
clrLoadAssembly('Temp.dll')
# Error in clrNew("Temp.MyClass", as.integer(0)): Type: System.MissingMethodException# Message: Constructor on type 'Temp.MyClass' not found.
clrNew('Temp.MyClass', as.integer(0))
# Works
clrNew('Temp.MyClass', 'hello')
(See also Stack Overflow: https://stackoverflow.com/q/44702930/32133)
For a non-overloaded method, passing an integer works where an enum is expected. When calling an overloaded method, this integer doesn't seem to be enough to push overload resolution in the right direction.
In R:
And the corresponding C#:
The text was updated successfully, but these errors were encountered: