Custom, Complicated, Dynamic Reflection Solution - C#

后端 未结 2 1898
悲&欢浪女
悲&欢浪女 2020-12-28 22:36

I have many custom classes that I am using that I will explain and post examples of. After Explaining what they all do I will try to clearly describe the conditions under wh

2条回答
  •  难免孤独
    2020-12-28 22:53

    Having worked with TypeConverters myself, I can confirm they are a major pain in the bottom parts. You get nada info about what is actually going wrong, only weird output...

    Idk if it helps, but maybe it is a problem that you add an empty (null) array to anything that is not an IEnumerable? Try moving the add instruction into the scope of the if (...). I dont think there is any harm in that.

    Also, are you certain that (in the last example with the EndJoint) the getter does not return a null pointer? Blank entries smell like null pointers being passed from my experiences.

提交回复
热议问题