|
|
|
|
|
|
return Array == null || Array.Length == 0; |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <summary>
|
|
|
|
/// Returns an enumerator that iterates through the ActionSegment.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>An IEnumerator object that can be used to iterate through the ActionSegment.</returns>
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <summary>
|
|
|
|
/// Returns an enumerator that iterates through the ActionSegment.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>An IEnumerator object that can be used to iterate through the ActionSegment.</returns>
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <summary>
|
|
|
|
/// Indicates whether the current ActionSegment is equal to another ActionSegment.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="obj">An ActionSegment to compare with this ActionSegment.</param>
|
|
|
|
/// <returns>true if the current ActionSegment is equal to the other parameter; otherwise, false.</returns>
|
|
|
|
public override bool Equals(object obj) |
|
|
|
{ |
|
|
|
if (!(obj is ActionSegment<T>)) |
|
|
|
|
|
|
return Equals((ActionSegment<T>)obj); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <summary>
|
|
|
|
/// Indicates whether the current ActionSegment is equal to another ActionSegment.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="other">An ActionSegment to compare with this ActionSegment.</param>
|
|
|
|
/// <returns>true if the current ActionSegment is equal to the other parameter; otherwise, false.</returns>
|
|
|
|
/// <inheritdoc/>
|
|
|
|
/// <summary>
|
|
|
|
/// Computes the hash code of the ActionSegment.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>A hash code for the current ActionSegment.</returns>
|
|
|
|
public override int GetHashCode() |
|
|
|
{ |
|
|
|
unchecked |
|
|
|