Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ViewName != null ? ViewName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DefaultLayoutName != null ? DefaultLayoutName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Layouts != null ? Layouts.GetHashCode() : 0);
         return(hashCode);
     }
 }
Example #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ViewName != null?ViewName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (DefaultValue != null ? DefaultValue.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Children != null ? Children.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0);
                return(hashCode);
            }
        }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 13;
         hashCode = (hashCode * 397) ^ ViewName?.GetHashCode() ?? 0;
         foreach (var column in BusinessIdColumnList)
         {
             hashCode = (hashCode * 397) ^ column?.GetHashCode() ?? 0;
         }
         return(hashCode);
     }
 }
Example #4
0
        public override int GetHashCode()
        {
            var hash = 0;

            if (ModuleName != null)
            {
                hash ^= ModuleName.GetHashCode();
            }

            if (ViewName != null)
            {
                hash ^= ViewName.GetHashCode();
            }

            hash ^= LoadCommand.GetHashCode();

            if (LoadParameter != null)
            {
                hash ^= LoadParameter.GetHashCode();
            }

            return(hash);
        }