I was wondering if there is a good reason for ScriptReference not to override Equals. It would certainly make life in ScriptReferenceCollections easier (e.g. Contains), would it not?
I was wondering if there is a good reason for ScriptReference not to override
Share
It has too many properties that may vary to make it viable to use some form of value based equality.
Note also it isn’t sealed hence its sub-types may introduce further properties which would invalidate any existing equality code and hence make equality testing even more complex.