Google.Api.Ads.AdWords.Util.Shopping.v201702.ProductDimensionEqualityComparer.GetHashCodeInternal(ProductBiddingCategory)

Here are the examples of the csharp api class Google.Api.Ads.AdWords.Util.Shopping.v201702.ProductDimensionEqualityComparer.GetHashCodeInternal(ProductBiddingCategory) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: googleads-dotnet-lib
Source File: ProductDimensionEqualityComparer.cs
public int GetHashCode(ProductDimension obj) {
      if (obj == null) {
        return 0;
      }

      if (obj is ProductBiddingCategory) {
        return GetHashCodeInternal(obj as ProductBiddingCategory);
      } else if (obj is ProductBrand) {
        return GetHashCodeInternal(obj as ProductBrand);
      } else if (obj is ProductCanonicalCondition) {
        return GetHashCodeInternal(obj as ProductCanonicalCondition);
      } else if (obj is ProductCustomAttribute) {
        return GetHashCodeInternal(obj as ProductCustomAttribute);
      } else if (obj is ProductOfferId) {
        return GetHashCodeInternal(obj as ProductOfferId);
      } else if (obj is ProductChannel) {
        return GetHashCodeInternal(obj as ProductChannel);
      } else if (obj is ProductChannelExclusivity) {
        return GetHashCodeInternal(obj as ProductChannelExclusivity);
      } else if (obj is ProductType) {
        return GetHashCodeInternal(obj as ProductType);
      } else {
        return obj.GetHashCode();
      }
    }