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

            hash = (hash * 397) ^ Post_id.GetHashCode();
            hash = (hash * 397) ^ Tag_id.GetHashCode();

            return(hash);
        }
Beispiel #2
0
        public override string ToString()
        {
            string json = string.Concat(
                __jsonIgnore.ContainsKey("Goods_id") ? string.Empty : string.Format(", Goods_id : {0}", Goods_id == null ? "null" : Goods_id.ToString()),
                __jsonIgnore.ContainsKey("Tag_id") ? string.Empty : string.Format(", Tag_id : {0}", Tag_id == null ? "null" : Tag_id.ToString()), " }");

            return(string.Concat("{", json.Substring(1)));
        }