public static bool operator !=(DispatchObject a, DispatchObject b) { if (a == null){ if (b == null) return false; return true; } else { if (b == null) return true; return a.handle != b.handle; } }