Skip to content

Commit

Permalink
Remove Equals and GetHashCode methods from AnyOf (#1688)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Jul 2, 2019
1 parent f292304 commit aa0c2a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Stripe.net/Services/_base/AnyOf.cs
Expand Up @@ -16,10 +16,8 @@ public abstract class AnyOf : IAnyOf
/// <returns>The type of the current <see cref="AnyOf"/> object.</returns>
public abstract Type Type { get; }

public override bool Equals(object other) => this.Value.Equals(other);

public override int GetHashCode() => this.Value.GetHashCode();

/// <summary>Returns a string that represents the current object.</summary>
/// <returns>A string that represents the current object.</returns>
public override string ToString() => this.Value.ToString();
}

Expand Down

0 comments on commit aa0c2a1

Please sign in to comment.