I am translating from Java to C# and have code similar to:
Class<?> refClass = refChildNode.getClass();
Class<?> testClass = testChildNode.getClass();
if (!refClass.equals(testClass)) {
....
}
and elsewhere use Class.isAssignableFrom(Class c)
... and similar methods
Is there a table of direct equivalents for class comparsion and properties and code-arounds where this isn't possible?
(The <?>
is simply to stop warnings from the IDE about generics. A better solution would be appreciated)