Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (contents_ != null)
            {
                hash ^= Contents.GetHashCode();
            }
            if (cost_ != null)
            {
                hash ^= Cost.GetHashCode();
            }
            if (IapId.Length != 0)
            {
                hash ^= IapId.GetHashCode();
            }
            if (skuData_ != null)
            {
                hash ^= SkuData.GetHashCode();
            }
            if (requirements_ != null)
            {
                hash ^= Requirements.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public static string GetName(IapId id)
 {
     return(IapName[(int)id]);
 }