Replace nameof() with the argument name because older compilers do not know that new keyword yet
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/b0729e2e Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/b0729e2e Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/b0729e2e Branch: refs/heads/feature/cd-pipeline Commit: b0729e2e4edfbdcb6da77a3462c16d3900a7a80b Parents: 3c4de1c Author: Dominik Psenner <dpsen...@apache.org> Authored: Tue Oct 31 15:37:26 2017 +0100 Committer: Dominik Psenner <dpsen...@apache.org> Committed: Tue Oct 31 15:37:26 2017 +0100 ---------------------------------------------------------------------- src/Repository/Hierarchy/Hierarchy.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/b0729e2e/src/Repository/Hierarchy/Hierarchy.cs ---------------------------------------------------------------------- diff --git a/src/Repository/Hierarchy/Hierarchy.cs b/src/Repository/Hierarchy/Hierarchy.cs index 37965e8..7658674 100644 --- a/src/Repository/Hierarchy/Hierarchy.cs +++ b/src/Repository/Hierarchy/Hierarchy.cs @@ -853,17 +853,17 @@ namespace log4net.Repository.Hierarchy if (name == null) { - throw new ArgumentException(nameof(log), "Invalid logger name: a logger name must not be null."); + throw new ArgumentException("log", "Invalid logger name: a logger name must not be null."); } if (name == string.Empty) { - throw new ArgumentException(nameof(log), "Invalid logger name: a logger name must not be empty."); + throw new ArgumentException("log", "Invalid logger name: a logger name must not be empty."); } if (name != name.Trim()) { - throw new ArgumentException(nameof(log), "Invalid logger name: a logger name must not be prefixed or suffixed with whitespaces."); + throw new ArgumentException("log", "Invalid logger name: a logger name must not be prefixed or suffixed with whitespaces."); } string[] nameParts = name.Split('.'); @@ -873,12 +873,12 @@ namespace log4net.Repository.Hierarchy if (namePart == string.Empty) { - throw new ArgumentException(nameof(log), "Invalid logger name: a logger name must not contain a substring of two dots or more."); + throw new ArgumentException("log", "Invalid logger name: a logger name must not contain a substring of two dots or more."); } if (namePart != namePart.Trim()) { - throw new ArgumentException(nameof(log), "Invalid logger name: each part in a logger name when split by a dot must not be prefixed or suffixed with whitespaces."); + throw new ArgumentException("log", "Invalid logger name: each part in a logger name when split by a dot must not be prefixed or suffixed with whitespaces."); } }