public bool Equals(CodeComment other) { if (ReferenceEquals(other, null)) { return(false); } return(Text == other.Text); }
public override bool Equals(object obj) { if (obj == null) { return(false); } CodeComment rhs = obj as CodeComment; if (rhs == null) { return(false); } return(Text == rhs.Text); }
public static void Rule(Clause lhs, OptionalProcedureComments optionalProcedureComments, Term term, OptionalRuleBody optionalBody) { IEnumerable<CodeComment> comments = optionalProcedureComments.Comments; if (comments == null) { comments = new CodeComment[] { }; } IEnumerable<CodeCompoundTerm> codeCompoundTerms = optionalBody.CodeCompoundTerms; if (codeCompoundTerms == null) { codeCompoundTerms = new CodeCompoundTerm[] { }; } lhs.CodeSentence = new CodeSentence(comments, term.CodeCompoundTerm, codeCompoundTerms); }
public bool Equals(CodeComment other) { if (ReferenceEquals(other, null)) return false; return Text == other.Text; }