/// <summary>
            /// Determines whether the specified <see cref="Object" />, is equal to this instance.
            /// </summary>
            /// <param name="obj">The <see cref="Object" /> to compare with this instance.</param>
            /// <returns>
            ///   <c>true</c> if the specified <see cref="Object" /> is equal to this instance; otherwise, <c>false</c>.
            /// </returns>
            public override bool Equals(object obj)
            {
                if (!(obj is Parameter))
                {
                    // ReSharper disable once BaseObjectEqualsIsObjectEquals
                    return(base.Equals(obj));
                }

                var other = (Parameter)obj;

                return(Guid.Equals(other.Guid) &&
                       Name.Equals(other.Name) &&
                       IsShared.Equals(other.IsShared) &&
                       Description.Equals(other.Description) &&
                       (GroupId.Equals(other.GroupId) || GroupName.Equals(other.GroupName)));
            }
예제 #2
0
        public override bool Equals(object o)
        {
            if (!(o is Properties))
            {
                return(false);
            }
            Properties v = o as Properties;

            if (!Deletable.Equals(v.Deletable))
            {
                return(false);
            }
            if (!IsShared.Equals(v.IsShared))
            {
                return(false);
            }
            if (!Renamable.Equals(v.Renamable))
            {
                return(false);
            }
            return(true);
        }
예제 #3
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"Deletable", Deletable.ToString());
     data.SetValue(@"" + path + @"IsShared", IsShared.ToString());
     data.SetValue(@"" + path + @"Renamable", Renamable.ToString());
 }