diff --git a/src/Intercept.cs b/src/Intercept.cs index 66e3d08..ed3ec9d 100644 --- a/src/Intercept.cs +++ b/src/Intercept.cs @@ -1,6 +1,4 @@ - - -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Linq; @@ -84,8 +82,6 @@ namespace Unity.Interception /// when is . /// when cannot intercept /// . - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods", - Justification = "Validation done by Guard class")] public static object ThroughProxyWithAdditionalInterfaces( Type interceptedType, object target, @@ -230,8 +226,6 @@ namespace Unity.Interception /// when is . /// when cannot intercept /// . - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods", - Justification = "Validation done by Guard class")] public static object NewInstanceWithAdditionalInterfaces( Type type, ITypeInterceptor interceptor, @@ -312,10 +306,6 @@ namespace Unity.Interception /// Any additional interfaces the instance must implement. /// An array with the required interfaces for /// when the interfaces are not valid. - [System.Diagnostics.CodeAnalysis.SuppressMessage( - "Microsoft.Usage", - "CA2208:InstantiateArgumentExceptionsCorrectly", - Justification = "Argument ok, confused by use within a lambda expression")] public static Type[] GetAllAdditionalInterfaces( IEnumerable interceptionBehaviors, IEnumerable additionalInterfaces)