Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Equality and Inequality operators not found in DLL ???

$
0
0
Hey there ! So here's the problem... After some refactoring to remove default operators so that it compiles well, now I get some new funny errors when trying to use it. I get MissingMethodExceptions all over the places for pretty much all reflection types. At first, I had trouble with == operator for Type class. I still don't understand why that didn't work since Equals method was implemented, but whatever. Now I have trouble with MemberInfo == operator, and that's like really really boring. Isn't it the C# standard behaviour for == operator to call object's ReferenceEquals method if it was not explictly implemented by derived class ? (which is pretty much all I need since I use that for null check) There's definitely something I don't understand there. Thousands things work in Unity (like default arguments, aforementioned operators...) and just don't work when you build it in a DLL. Just what's the logic behing that ? Is there something I'm doing wrong ? Thanks in advance for your answers.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>