equalsEntityReferenceBase static method

bool? equalsEntityReferenceBase(
  1. Object value1,
  2. Object value2
)

Implementation

static bool? equalsEntityReferenceBase(Object value1, Object value2) {
  if (value1 is EntityReference && value2 is EntityReference) {
    return value1 == value2;
  }

  if (value1 is EntityReferenceList && value2 is EntityReferenceList) {
    return value1 == value2;
  }

  return null;
}