コード例 #1
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(SelectorDescriptor other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(Value, other.Value) &&
            Enumerable.SequenceEqual(SelectorAttributes, other.SelectorAttributes) &&
            Enumerable.SequenceEqual(PseudoSelectorDescriptors, other.PseudoSelectorDescriptors));
 }
コード例 #2
0
ファイル: Command.cs プロジェクト: szabototo89/CodeSharper
 /// <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));
 }
コード例 #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));
 }
コード例 #4
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(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));
 }
コード例 #5
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(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);
 }
コード例 #6
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(CommandCallElement other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            String.Equals(MethodName, other.MethodName) &&
            Equals(ActualParameters, other.ActualParameters));
 }
コード例 #7
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(ConstantElement other)
 {
     return(EqualityHelper.IsNullOrReferenceEqual(other, this) ??
            Equals(Value, other.Value) &&
            Type == other.Type);
 }
コード例 #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);
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #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));
 }