Esempio n. 1
0
        public override int GetHashCode()
        {
            var hc = 0;

            if (Rows != null)
            {
                hc = Rows.Aggregate(hc, (current, p) => current ^ p.GetHashCode());
            }

            return(new { Name, hc }.GetHashCode());
        }
 /// <summary>
 /// Gets a textual representation of the section - eg. to be used in Examine.
 /// </summary>
 /// <returns>Returns an instance of <see cref="System.String"/> representing the value of the section.</returns>
 public virtual string GetSearchableText()
 {
     return(Rows.Aggregate("", (current, row) => current + row.GetSearchableText()));
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            var hc = Rows.Aggregate(0, (current, p) => current ^ p.GetHashCode());

            return(new { Name, hc }.GetHashCode());
        }