public object Clone() { Match match = new Match(); match.Id = Id; match.Batch = Batch; match.Result = Result; match.Severity = Severity; match.LineNumber = LineNumber; match.CodeExtract = (string.IsNullOrWhiteSpace(CodeExtract)) ? string.Empty : CodeExtract.Clone() as string; match.RuleDeclarationRef = RuleDeclarationRef; match.RuleDefinitionRef = RuleDefinitionRef; match.CategoryDeclarationRef = CategoryDeclarationRef; match.CategoryDefinitionRef = CategoryDefinitionRef; match.ProjectDefinitionRef = ProjectDefinitionRef; match.LanguageDeclarationRef = LanguageDeclarationRef; match.RootDirectoryPath = RootDirectoryPath.Clone() as string; match.Filename = Filename.Clone() as string; return(match); }
public override int GetHashCode() { return(Guid.GetHashCode() ^ Label.GetHashCode() ^ RootDirectoryPath.GetHashCode()); }