From 86d7bd074431ee1d47f79222303177b9b054c75c Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Sat, 12 Nov 2022 00:58:20 +0100 Subject: [PATCH 1/3] Add snippet ArgumentNullException.ThrowIfNull --- .../ArgumentNullExceptionThrowIfNull.snippet | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet diff --git a/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet b/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet new file mode 100644 index 00000000..d19fede2 --- /dev/null +++ b/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet @@ -0,0 +1,27 @@ + + +
+ ArgumentNullException.ThrowIfNull + anetin + ArgumentNullException.ThrowIfNull null check + Josef Pihrt + + Expansion + +
+ + + + System + + + + + argument + Argument + arg + + + + +
\ No newline at end of file From 4bb3b8d59f19a67f02d8ea075ab8e7d9c29ff680 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Sat, 12 Nov 2022 00:59:38 +0100 Subject: [PATCH 2/3] Update changelog --- ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog.md b/ChangeLog.md index 4d9dab24..43ef7ca9 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added - Add snippet for 'while not' (`wx`) ([#54](https://github.com/josefpihrt/roslynator/pull/54)). +- Add snippet for `ArgumentNullException.ThrowIfNull` (`anetin`) ([#55](https://github.com/josefpihrt/roslynator/pull/55)). ## [1.0.0] - 2022-10-17 From 31a5e456b91cdeb2b4d691a74ec579f1161175f8 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Sat, 12 Nov 2022 11:38:15 +0100 Subject: [PATCH 3/3] update --- .../ArgumentNullExceptionThrowIfNull.snippet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet b/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet index d19fede2..90199648 100644 --- a/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet +++ b/src/Snippetica/Snippetica.CSharp/ArgumentNullExceptionThrowIfNull.snippet @@ -17,11 +17,11 @@ - argument + _identifier Argument - arg + x - + \ No newline at end of file pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy