IsSameYear method

bool IsSameYear(
  1. DateTime other
)

Implementation

bool IsSameYear(DateTime other) {
  return this.year == other.year;
}