chore: Decorating extension methods with NotNull and CanBeNull attributes

This commit is contained in:
Chris Cameron
2019-10-07 21:59:21 -04:00
parent 38204314e7
commit 89cde5c9a0
20 changed files with 445 additions and 313 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Linq;
using ICD.Common.Properties;
namespace ICD.Common.Utils.Extensions
{
@@ -10,7 +11,8 @@ namespace ICD.Common.Utils.Extensions
/// </summary>
/// <param name="extends"></param>
/// <returns></returns>
public static string GetUserName(this Uri extends)
[NotNull]
public static string GetUserName([NotNull] this Uri extends)
{
if (extends == null)
throw new ArgumentNullException("extends");
@@ -23,7 +25,8 @@ namespace ICD.Common.Utils.Extensions
/// </summary>
/// <param name="extends"></param>
/// <returns></returns>
public static string GetPassword(this Uri extends)
[NotNull]
public static string GetPassword([NotNull] this Uri extends)
{
if (extends == null)
throw new ArgumentNullException("extends");