ProfessorAire/Evands.Pellucid-Crestron

Attempting to a dump a MethodInfo results in an exception

Closed this issue · 0 comments

Tried to dump an object of type Dictionary<string, List<MethodInfo>>. Got the following error.

Crestron.SimplSharp.Reflection.RestrictionViolationException: RestrictionViolationException: System.Reflection.RuntimeMethodInfo - Not allowed due to restrictions
  at Crestron.SimplSharp.Reflection.CTypeImpl.set_InnerObject (System.Object value) [0x001a7] in <e0309a5132444b8e8c38e7c1bfa9d6f0>:0
  at Crestron.SimplSharp.Reflection.MemberInfo.Create[T] (System.Reflection.MemberInfo memberInfo) [0x00230] in <e0309a5132444b8e8c38e7c1bfa9d6f0>:0
  at Crestron.SimplSharp.Reflection.TypeExtensions.GetCType (System.Type type) [0x00072] in <e0309a5132444b8e8c38e7c1bfa9d6f0>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj, System.String name, System.Type objectType) [0x00012] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj, System.String name) [0x0000e] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj) [0x00000] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpCollection.PopulateEnumerable () [0x00020] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpCollection.PopulateItems () [0x0001f] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpCollection..ctor (System.Collections.IEnumerable value, System.String name, System.Type collectionType) [0x00014] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj, System.String name, System.Type objectType) [0x0004c] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj, System.String name) [0x0000e] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpCollection.PopulateDictionary () [0x00093] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpCollection.PopulateItems () [0x00018] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpCollection..ctor (System.Collections.IEnumerable value, System.String name, System.Type collectionType) [0x00014] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj, System.String name, System.Type objectType) [0x00039] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj, System.String name) [0x0000e] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.DumpHelpers.DumpFactory.GetNode (System.Object obj) [0x00000] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Terminal.Formatting.Formatters.FormatObjectForConsole (System.Object obj) [0x00018] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Evands.Pellucid.Extensions.Dump[T] (T obj) [0x0000d] in <17ea774ec30e43df97c82c71a17ebe9d>:0
  at Hermes.Invokers.UnicastMessageInvoker.DiscoverEndpointMethods (Hermes.Endpoints.IUnicastEndpoint endpoint) [0x000e8] in <2128aa21f4094adb9977d6ba7e0b8e31>:0
  at Hermes.MessagePublisher.Register (Hermes.Endpoints.IEndpoint endpoint) [0x00069] in <2128aa21f4094adb9977d6ba7e0b8e31>:0
  at Masters_Gold_Exam.Core.EndpointBase..ctor (System.String id, Hermes.IMessagePublisher publisher) [0x0001f] in <bfbfa29ad96f4467ae984ac29844667c>:0
  at Masters_Gold_Exam.Flight.FlightManager..ctor (Masters_Gold_Exam.Core.ControlSystem cs, Hermes.IMessagePublisher publisher) [0x00000] in <bfbfa29ad96f4467ae984ac29844667c>:0
  at Masters_Gold_Exam.Core.SystemManager.Initialize () [0x00035] in <bfbfa29ad96f4467ae984ac29844667c>:0
  at Masters_Gold_Exam.Core.ControlSystem.<InitializeSystem>b__18_0 (System.Object _) [0x00020] in <bfbfa29ad96f4467ae984ac29844667c>:0
-----------------------------