From 185e37863f751515756b7fec8d8bf421262195ea Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 13 Jul 2019 12:37:07 -0500 Subject: [PATCH] suppress warning on prop accessed via reflection --- src/FilterLists.Agent/Core/Urls/EntityUrl.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Agent/Core/Urls/EntityUrl.cs b/src/FilterLists.Agent/Core/Urls/EntityUrl.cs index 24d09dc4a..f8640908f 100644 --- a/src/FilterLists.Agent/Core/Urls/EntityUrl.cs +++ b/src/FilterLists.Agent/Core/Urls/EntityUrl.cs @@ -1,6 +1,8 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; +using JetBrains.Annotations; namespace FilterLists.Agent.Core.Urls { @@ -14,8 +16,12 @@ public EntityUrl(FilterListsEntity filterListsEntity, int id, Uri viewUrl) } public FilterListsEntity FilterListsEntity { get; } - public int Id { get; } + + [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")] + public int Id { [UsedImplicitly] get; } + public Uri ViewUrl { get; } + public List ValidationMessages { get; } = new List(); public bool IsValid()