Hi
I'm trying to run very simple example of YamlDotNet.Dynamic which looks like this:
var nap = @"---
test: test1
esendpoint:
protocol: https
host: aa.bb.com
port: one
user: none
passwd:dddfff
";
dynamic dy = new DynamicYaml(nap);
var mvi = (string)(dy.test);
Console.WriteLine(mvi);
Platform: mono 4.6.1
My nuget packages:
YamlDotNet 4.0.0
YamlDotNet.Dynamic 3.2.3
My references:
Microsoft.CSharp
System
but I'm getting following exception:
Unhandled Exception:
System.MissingMethodException: Method 'YamlDotNet.RepresentationModel.YamlScalarNode.op_Implicit' not found.
at YamlDotNet.Dynamic.DynamicYaml.TryGetMember (System.Dynamic.GetMemberBinder binder, System.Object& result) [0x0000d] in <855090e7213d4a30bff1a2db806e39bb>:0
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00127] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/UpdateDelegates.Generated.cs:262
at YamlConfigExample.MainClass.Main (System.String[] args) [0x0000e] in /Users/mha/Documents/proj/devel/csharp/YamlConfigExample/YamlConfigExample/Program.cs:38
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method 'YamlDotNet.RepresentationModel.YamlScalarNode.op_Implicit' not found.
at YamlDotNet.Dynamic.DynamicYaml.TryGetMember (System.Dynamic.GetMemberBinder binder, System.Object& result) [0x0000d] in <855090e7213d4a30bff1a2db806e39bb>:0
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00127] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/UpdateDelegates.Generated.cs:262
at YamlConfigExample.MainClass.Main (System.String[] args) [0x0000e] in /Users/mha/Documents/proj/devel/csharp/YamlConfigExample/YamlConfigExample/Program.cs:38
I'm able to navigate in watcher in dy structure:

Please, can you help me to make it work?
Hi
I'm trying to run very simple example of YamlDotNet.Dynamic which looks like this:
Platform: mono 4.6.1
My nuget packages:
YamlDotNet 4.0.0
YamlDotNet.Dynamic 3.2.3
My references:
Microsoft.CSharp
System
but I'm getting following exception:
I'm able to navigate in watcher in dy structure:

Please, can you help me to make it work?