Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Guid.GetHashCode() ^
            Label.GetHashCode() ^
            RootDirectoryPath.GetHashCode());
 }