/// <summary>
 /// Indicates whether the current Object is equal to another Object of the same type.
 /// </summary>
 /// <param name="other">An Object to compare with this Object.</param>
 /// <returns>
 /// true if the current Object is equal to the <paramref name="other" /> parameter; otherwise, false.
 /// </returns>
 public Boolean Equals(SelectorDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(Value, other.Value) &&
            Enumerable.SequenceEqual(SelectorAttributes, other.SelectorAttributes) &&
            Enumerable.SequenceEqual(PseudoSelectorDescriptors, other.PseudoSelectorDescriptors));
 }
Beispiel #2
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(Command other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            Runnable.Equals(other.Runnable) &&
            CommandDescriptor.Equals(other.CommandDescriptor) &&
            ActualArguments.SequenceEqual(other.ActualArguments));
 }
Beispiel #3
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(ActualParameterElement other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            ParameterName.Equals(other.ParameterName) &&
            Position.Equals(other.Position) &&
            Equals(Value, other.Value));
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(CommandDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(Name, other.Name) &&
            String.Equals(Description, other.Description) &&
            Enumerable.SequenceEqual(Arguments, other.Arguments) &&
            Enumerable.SequenceEqual(CommandNames, other.CommandNames));
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(ArgumentDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(ArgumentName, other.ArgumentName) &&
            Equals(DefaultValue, other.DefaultValue) &&
            IsOptional == other.IsOptional &&
            ArgumentType == other.ArgumentType &&
            Position == other.Position);
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.
 /// </returns>
 public Boolean Equals(CommandCallElement other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(MethodName, other.MethodName) &&
            Equals(ActualParameters, other.ActualParameters));
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(ConstantElement other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            Equals(Value, other.Value) &&
            Type == other.Type);
 }
Beispiel #8
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public Boolean Equals(ErrorMessage other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this, true) ??
            Exception == other.Exception);
 }
Beispiel #9
0
 /// <summary>
 /// Indicates whether the current Object is equal to another Object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current Object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An Object to compare with this Object.</param>
 public Boolean Equals(ModifierSelectorDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(Name, other.Name) &&
            Value.Equals(other.Value));
 }
Beispiel #10
0
 /// <summary>
 /// Indicates whether the current Object is equal to another Object of the same type.
 /// </summary>
 /// <returns>
 /// true if the current Object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 /// <param name="other">An Object to compare with this Object.</param>
 public Boolean Equals(SelectorAttributeDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(Name, other.Name) &&
            String.Equals(Value, other.Value));
 }
Beispiel #11
0
 /// <summary>
 /// Indicates whether the current Object is equal to another Object of the same type.
 /// </summary>
 /// <param name="other">An Object to compare with this Object.</param>
 /// <returns>
 /// true if the current Object is equal to the <paramref name="other" /> parameter; otherwise, false.
 /// </returns>
 public Boolean Equals(CommandCallDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(Name, other.Name) &&
            Enumerable.SequenceEqual(ActualParameters, other.ActualParameters));
 }