/// <summary> /// Determines if this value has an object id (that is, is of type <see cref="LabeledInstance"/>), /// or has a subvalue that has an object id (for example, a set of instances). /// </summary> /// <returns>True if this value has an object id or contains a value with an object id.</returns> public override bool ContainsObjectIds() { foreach (IComparable obj in this.FieldValues()) { if (AbstractValue.ContainsObjectIds(obj)) { return(true); } } return(false); }
/// <summary> /// Determines if this value has an object id (that is, is of type <see cref="LabeledInstance"/>), /// or has a subvalue that has an object id (for example, a set of instances). /// </summary> /// <returns>True if this value has an object id or contains a value with an object id.</returns> public bool ContainsObjectIds() { return(AbstractValue.ContainsObjectIds(this.first) || AbstractValue.ContainsObjectIds(this.second) || AbstractValue.ContainsObjectIds(this.third)); }