Beispiel #1
0
        public static bool TryParse(string input, out DiagnosticEntry entry)
        {
            entry = null;

            if (string.IsNullOrWhiteSpace(input))
            {
                return(false);
            }

            var parts = input.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries);

            if (parts.Length != 2)
            {
                return(false);
            }

            entry = new DiagnosticEntry(parts[0], parts[1]);
            return(true);
        }
Beispiel #2
0
 protected bool Equals(DiagnosticEntry other) =>
 string.Equals(Component, other.Component, StringComparison.OrdinalIgnoreCase) &&
 string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase);