Inspectopedia 2025.2 Help

Roslyn Analyzers

RoslynAnalyzers 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument   New in this release

RoslynAnalyzers 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument.

RoslynAnalyzers 'ThreadStatic' only affects static fields   New in this release

RoslynAnalyzers 'ThreadStatic' only affects static fields.

RoslynAnalyzers A constant is expected for the parameter   New in this release

RoslynAnalyzers A constant is expected for the parameter.

RoslynAnalyzers Abstract types should not have public constructors   New in this release

RoslynAnalyzers Abstract types should not have public constructors.

RoslynAnalyzers All members declared in parent interfaces must have an implementation in a DynamicInterfaceCastableImplementation-attributed interface   New in this release

RoslynAnalyzers All members declared in parent interfaces must have an implementation in a DynamicInterfaceCastableImplementation-attributed interface.

RoslynAnalyzers Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum   New in this release

RoslynAnalyzers Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum.

RoslynAnalyzers Assigning symbol and its member in the same statement   New in this release

RoslynAnalyzers Assigning symbol and its member in the same statement.

RoslynAnalyzers Attribute string literals should parse correctly   New in this release

RoslynAnalyzers Attribute string literals should parse correctly.

RoslynAnalyzers Avoid 'StringBuilder' parameters for P/Invokes   New in this release

RoslynAnalyzers Avoid 'StringBuilder' parameters for P/Invokes.

RoslynAnalyzers Avoid constant arrays as arguments   New in this release

RoslynAnalyzers Avoid constant arrays as arguments.

RoslynAnalyzers Avoid dead conditional code   New in this release

RoslynAnalyzers Avoid dead conditional code.

RoslynAnalyzers Avoid empty interfaces   New in this release

RoslynAnalyzers Avoid empty interfaces.

RoslynAnalyzers Avoid excessive class coupling   New in this release

RoslynAnalyzers Avoid excessive class coupling.

RoslynAnalyzers Avoid excessive complexity   New in this release

RoslynAnalyzers Avoid excessive complexity.

RoslynAnalyzers Avoid excessive inheritance   New in this release

RoslynAnalyzers Avoid excessive inheritance.

RoslynAnalyzers Avoid excessive parameters on generic types   New in this release

RoslynAnalyzers Avoid excessive parameters on generic types.

RoslynAnalyzers Avoid hardcoded SslProtocols values   New in this release

RoslynAnalyzers Avoid hardcoded SslProtocols values.

RoslynAnalyzers Avoid hardcoding SecurityProtocolType value   New in this release

RoslynAnalyzers Avoid hardcoding SecurityProtocolType value.

RoslynAnalyzers Avoid inexact read with 'Stream.Read'   New in this release

RoslynAnalyzers Avoid inexact read with 'Stream.Read'.

RoslynAnalyzers Avoid infinite recursion   New in this release

RoslynAnalyzers Avoid infinite recursion.

RoslynAnalyzers Avoid out parameters   New in this release

RoslynAnalyzers Avoid out parameters.

RoslynAnalyzers Avoid redundant length argument   New in this release

RoslynAnalyzers Avoid redundant length argument.

RoslynAnalyzers Avoid uninstantiated internal classes   New in this release

RoslynAnalyzers Avoid uninstantiated internal classes.

RoslynAnalyzers Avoid unmaintainable code   New in this release

RoslynAnalyzers Avoid unmaintainable code.

RoslynAnalyzers Avoid unsealed attributes   New in this release

RoslynAnalyzers Avoid unsealed attributes.

RoslynAnalyzers Avoid unused private fields   New in this release

RoslynAnalyzers Avoid unused private fields.

RoslynAnalyzers Avoid using 'Enumerable.Any()' extension method   New in this release

RoslynAnalyzers Avoid using 'Enumerable.Any()' extension method.

RoslynAnalyzers Avoid using cref tags with a prefix   New in this release

RoslynAnalyzers Avoid using cref tags with a prefix.

RoslynAnalyzers Avoid zero-length array allocations   New in this release

RoslynAnalyzers Avoid zero-length array allocations.

RoslynAnalyzers Cache and reuse 'JsonSerializerOptions' instances   New in this release

RoslynAnalyzers Cache and reuse 'JsonSerializerOptions' instances.

RoslynAnalyzers Call async methods when in an async method   New in this release

RoslynAnalyzers Call async methods when in an async method.

RoslynAnalyzers CancellationToken parameters must come last   New in this release

RoslynAnalyzers CancellationToken parameters must come last.

RoslynAnalyzers Collection properties should be read only   New in this release

RoslynAnalyzers Collection properties should be read only.

RoslynAnalyzers Consider calling ConfigureAwait on the awaited task   New in this release

RoslynAnalyzers Consider calling ConfigureAwait on the awaited task.

RoslynAnalyzers Consider making public types internal   New in this release

RoslynAnalyzers Consider making public types internal.

RoslynAnalyzers Consider using 'string.Contains' instead of 'string.IndexOf'   New in this release

RoslynAnalyzers Consider using 'string.Contains' instead of 'string.IndexOf'.

RoslynAnalyzers Consider using 'StringBuilder.Append(char)' when applicable   New in this release

RoslynAnalyzers Consider using 'StringBuilder.Append(char)' when applicable.

RoslynAnalyzers Convert to 'GeneratedRegexAttribute'.   New in this release

RoslynAnalyzers Convert to 'GeneratedRegexAttribute'.

RoslynAnalyzers Declare types in namespaces   New in this release

RoslynAnalyzers Declare types in namespaces.

RoslynAnalyzers Define accessors for attribute arguments   New in this release

RoslynAnalyzers Define accessors for attribute arguments.

RoslynAnalyzers Disposable fields should be disposed   New in this release

RoslynAnalyzers Disposable fields should be disposed.

RoslynAnalyzers Disposable types should declare finalizer   New in this release

RoslynAnalyzers Disposable types should declare finalizer.

RoslynAnalyzers Dispose methods should call base class dispose   New in this release

RoslynAnalyzers Dispose methods should call base class dispose.

RoslynAnalyzers Dispose methods should call SuppressFinalize   New in this release

RoslynAnalyzers Dispose methods should call SuppressFinalize.

RoslynAnalyzers Dispose objects before losing scope   New in this release

RoslynAnalyzers Dispose objects before losing scope.

RoslynAnalyzers Do Not Add Archive Item's Path To The Target File System Path   New in this release

RoslynAnalyzers Do Not Add Archive Item's Path To The Target File System Path.

RoslynAnalyzers Do Not Add Certificates To Root Store   New in this release

RoslynAnalyzers Do Not Add Certificates To Root Store.

RoslynAnalyzers Do Not Add Schema By URL   New in this release

RoslynAnalyzers Do Not Add Schema By URL.

RoslynAnalyzers Do not always skip token validation in delegates   New in this release

RoslynAnalyzers Do not always skip token validation in delegates.

RoslynAnalyzers Do not assign a property to itself   New in this release

RoslynAnalyzers Do not assign a property to itself.

RoslynAnalyzers Do not call BinaryFormatter.Deserialize without first setting BinaryFormatter.Binder   New in this release

RoslynAnalyzers Do not call BinaryFormatter.Deserialize without first setting BinaryFormatter.Binder.

RoslynAnalyzers Do Not Call Dangerous Methods In Deserialization   New in this release

RoslynAnalyzers Do Not Call Dangerous Methods In Deserialization.

RoslynAnalyzers Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types   New in this release

RoslynAnalyzers Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types.

RoslynAnalyzers Do not call overridable methods in constructors   New in this release

RoslynAnalyzers Do not call overridable methods in constructors.

RoslynAnalyzers Do not call ToImmutableCollection on an ImmutableCollection value   New in this release

RoslynAnalyzers Do not call ToImmutableCollection on an ImmutableCollection value.

RoslynAnalyzers Do Not Catch Corrupted State Exceptions   New in this release

RoslynAnalyzers Do Not Catch Corrupted State Exceptions.

RoslynAnalyzers Do not catch general exception types   New in this release

RoslynAnalyzers Do not catch general exception types.

RoslynAnalyzers Do not compare Span<T> to 'null' or 'default'   New in this release

RoslynAnalyzers Do not compare Span<T> to 'null' or 'default'.

RoslynAnalyzers Do not create tasks without passing a TaskScheduler   New in this release

RoslynAnalyzers Do not create tasks without passing a TaskScheduler.

RoslynAnalyzers Do not declare event fields as virtual   New in this release

RoslynAnalyzers Do not declare event fields as virtual.

RoslynAnalyzers Do not declare static members on generic types   New in this release

RoslynAnalyzers Do not declare static members on generic types.

RoslynAnalyzers Do not declare visible instance fields   New in this release

RoslynAnalyzers Do not declare visible instance fields.

RoslynAnalyzers Do not define finalizers for types derived from MemoryManager<T>   New in this release

RoslynAnalyzers Do not define finalizers for types derived from MemoryManager<T>.

RoslynAnalyzers Do not deserialize with JavaScriptSerializer using a SimpleTypeResolver   New in this release

RoslynAnalyzers Do not deserialize with JavaScriptSerializer using a SimpleTypeResolver.

RoslynAnalyzers Do not deserialize with JsonSerializer using an insecure configuration   New in this release

RoslynAnalyzers Do not deserialize with JsonSerializer using an insecure configuration.

RoslynAnalyzers Do not deserialize without first setting NetDataContractSerializer.Binder   New in this release

RoslynAnalyzers Do not deserialize without first setting NetDataContractSerializer.Binder.

RoslynAnalyzers Do Not Disable Certificate Validation   New in this release

RoslynAnalyzers Do Not Disable Certificate Validation.

RoslynAnalyzers Do Not Disable HTTP Header Checking   New in this release

RoslynAnalyzers Do Not Disable HTTP Header Checking.

RoslynAnalyzers Do Not Disable Request Validation   New in this release

RoslynAnalyzers Do Not Disable Request Validation.

RoslynAnalyzers Do Not Disable SChannel Use of Strong Crypto   New in this release

RoslynAnalyzers Do Not Disable SChannel Use of Strong Crypto.

RoslynAnalyzers Do not disable ServicePointManagerSecurityProtocols   New in this release

RoslynAnalyzers Do not disable ServicePointManagerSecurityProtocols.

RoslynAnalyzers Do not disable token validation checks   New in this release

RoslynAnalyzers Do not disable token validation checks.

RoslynAnalyzers Do not duplicate indexed element initializations   New in this release

RoslynAnalyzers Do not duplicate indexed element initializations.

RoslynAnalyzers Do not expose generic lists   New in this release

RoslynAnalyzers Do not expose generic lists.

RoslynAnalyzers Do not hard-code certificate   New in this release

RoslynAnalyzers Do not hard-code certificate.

RoslynAnalyzers Do not hard-code encryption key   New in this release

RoslynAnalyzers Do not hard-code encryption key.

RoslynAnalyzers Do not hide base class methods   New in this release

RoslynAnalyzers Do not hide base class methods.

RoslynAnalyzers Do not ignore method results   New in this release

RoslynAnalyzers Do not ignore method results.

RoslynAnalyzers Do not initialize unnecessarily   New in this release

RoslynAnalyzers Do not initialize unnecessarily.

RoslynAnalyzers Do not lock on objects with weak identity   New in this release

RoslynAnalyzers Do not lock on objects with weak identity.

RoslynAnalyzers Do not mark enums with FlagsAttribute   New in this release

RoslynAnalyzers Do not mark enums with FlagsAttribute.

RoslynAnalyzers Do not name enum values 'Reserved'   New in this release

RoslynAnalyzers Do not name enum values 'Reserved'.

RoslynAnalyzers Do not overload equality operator on reference types   New in this release

RoslynAnalyzers Do not overload equality operator on reference types.

RoslynAnalyzers Do not pass a non-nullable value to 'ArgumentNullException.ThrowIfNull'   New in this release

RoslynAnalyzers Do not pass a non-nullable value to 'ArgumentNullException.ThrowIfNull'.

RoslynAnalyzers Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull'   New in this release

RoslynAnalyzers Do not pass a nullable struct to 'ArgumentNullException.ThrowIfNull'.

RoslynAnalyzers Do not pass literals as localized parameters   New in this release

RoslynAnalyzers Do not pass literals as localized parameters.

RoslynAnalyzers Do not pass types by reference   New in this release

RoslynAnalyzers Do not pass types by reference.

RoslynAnalyzers Do not prefix enum values with type name   New in this release

RoslynAnalyzers Do not prefix enum values with type name.

RoslynAnalyzers Do not raise exceptions in finally clauses   New in this release

RoslynAnalyzers Do not raise exceptions in finally clauses.

RoslynAnalyzers Do not raise exceptions in unexpected locations   New in this release

RoslynAnalyzers Do not raise exceptions in unexpected locations.

RoslynAnalyzers Do not raise reserved exception types   New in this release

RoslynAnalyzers Do not raise reserved exception types.

RoslynAnalyzers Do Not Serialize Types With Pointer Fields   New in this release

RoslynAnalyzers Do Not Serialize Types With Pointer Fields.

RoslynAnalyzers Do not use 'OutAttribute' on string parameters for P/Invokes   New in this release

RoslynAnalyzers Do not use 'OutAttribute' on string parameters for P/Invokes.

RoslynAnalyzers Do not use 'WaitAll' with a single task   New in this release

RoslynAnalyzers Do not use 'WaitAll' with a single task.

RoslynAnalyzers Do not use 'WhenAll' with a single task   New in this release

RoslynAnalyzers Do not use 'WhenAll' with a single task.

RoslynAnalyzers Do Not Use Account Shared Access Signature   New in this release

RoslynAnalyzers Do Not Use Account Shared Access Signature.

RoslynAnalyzers Do Not Use Broken Cryptographic Algorithms   New in this release

RoslynAnalyzers Do Not Use Broken Cryptographic Algorithms.

RoslynAnalyzers Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult>   New in this release

RoslynAnalyzers Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult>.

RoslynAnalyzers Do not use Count() or LongCount() when Any() can be used   New in this release

RoslynAnalyzers Do not use Count() or LongCount() when Any() can be used.

RoslynAnalyzers Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used   New in this release

RoslynAnalyzers Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used.

RoslynAnalyzers Do not use CreateEncryptor with non-default IV   New in this release

RoslynAnalyzers Do not use CreateEncryptor with non-default IV.

RoslynAnalyzers Do not use DataSet.ReadXml() with untrusted data   New in this release

RoslynAnalyzers Do not use DataSet.ReadXml() with untrusted data.

RoslynAnalyzers Do not use DataTable.ReadXml() with untrusted data   New in this release

RoslynAnalyzers Do not use DataTable.ReadXml() with untrusted data.

RoslynAnalyzers Do Not Use Deprecated Security Protocols   New in this release

RoslynAnalyzers Do Not Use Deprecated Security Protocols.

RoslynAnalyzers Do not use deprecated SslProtocols values   New in this release

RoslynAnalyzers Do not use deprecated SslProtocols values.

RoslynAnalyzers Do Not Use Digital Signature Algorithm (DSA)   New in this release

RoslynAnalyzers Do Not Use Digital Signature Algorithm (DSA).

RoslynAnalyzers Do not use Enumerable methods on indexable collections   New in this release

RoslynAnalyzers Do not use Enumerable methods on indexable collections.

RoslynAnalyzers Do not use insecure deserializer BinaryFormatter   New in this release

RoslynAnalyzers Do not use insecure deserializer BinaryFormatter.

RoslynAnalyzers Do not use insecure deserializer LosFormatter   New in this release

RoslynAnalyzers Do not use insecure deserializer LosFormatter.

RoslynAnalyzers Do not use insecure deserializer NetDataContractSerializer   New in this release

RoslynAnalyzers Do not use insecure deserializer NetDataContractSerializer.

RoslynAnalyzers Do not use insecure deserializer ObjectStateFormatter   New in this release

RoslynAnalyzers Do not use insecure deserializer ObjectStateFormatter.

RoslynAnalyzers Do not use insecure JsonSerializerSettings   New in this release

RoslynAnalyzers Do not use insecure JsonSerializerSettings.

RoslynAnalyzers Do not use insecure randomness   New in this release

RoslynAnalyzers Do not use insecure randomness.

RoslynAnalyzers Do not use obsolete key derivation function   New in this release

RoslynAnalyzers Do not use obsolete key derivation function.

RoslynAnalyzers Do not use ReferenceEquals with value types   New in this release

RoslynAnalyzers Do not use ReferenceEquals with value types.

RoslynAnalyzers Do not use stackalloc in loops   New in this release

RoslynAnalyzers Do not use stackalloc in loops.

RoslynAnalyzers Do not use TypeNameHandling values other than None   New in this release

RoslynAnalyzers Do not use TypeNameHandling values other than None.

RoslynAnalyzers Do not use unsafe DllImportSearchPath value   New in this release

RoslynAnalyzers Do not use unsafe DllImportSearchPath value.

RoslynAnalyzers Do Not Use Weak Cryptographic Algorithms   New in this release

RoslynAnalyzers Do Not Use Weak Cryptographic Algorithms.

RoslynAnalyzers Do Not Use Weak Key Derivation Function With Insufficient Iteration Count   New in this release

RoslynAnalyzers Do Not Use Weak Key Derivation Function With Insufficient Iteration Count.

RoslynAnalyzers Do Not Use XslTransform   New in this release

RoslynAnalyzers Do Not Use XslTransform.

RoslynAnalyzers Ensure auto-generated class containing DataSet.ReadXml() is not used with untrusted data   New in this release

RoslynAnalyzers Ensure auto-generated class containing DataSet.ReadXml() is not used with untrusted data.

RoslynAnalyzers Ensure BinaryFormatter.Binder is set before calling BinaryFormatter.Deserialize   New in this release

RoslynAnalyzers Ensure BinaryFormatter.Binder is set before calling BinaryFormatter.Deserialize.

RoslynAnalyzers Ensure Certificates Are Not Added To Root Store   New in this release

RoslynAnalyzers Ensure Certificates Are Not Added To Root Store.

RoslynAnalyzers Ensure HttpClient certificate revocation list check is not disabled   New in this release

RoslynAnalyzers Ensure HttpClient certificate revocation list check is not disabled.

RoslynAnalyzers Ensure JavaScriptSerializer is not initialized with SimpleTypeResolver before deserializing   New in this release

RoslynAnalyzers Ensure JavaScriptSerializer is not initialized with SimpleTypeResolver before deserializing.

RoslynAnalyzers Ensure Key Derivation Function algorithm is sufficiently strong   New in this release

RoslynAnalyzers Ensure Key Derivation Function algorithm is sufficiently strong.

RoslynAnalyzers Ensure NetDataContractSerializer.Binder is set before deserializing   New in this release

RoslynAnalyzers Ensure NetDataContractSerializer.Binder is set before deserializing.

RoslynAnalyzers Ensure Sufficient Iteration Count When Using Weak Key Derivation Function   New in this release

RoslynAnalyzers Ensure Sufficient Iteration Count When Using Weak Key Derivation Function.

RoslynAnalyzers Ensure that JsonSerializer has a secure configuration when deserializing   New in this release

RoslynAnalyzers Ensure that JsonSerializer has a secure configuration when deserializing.

RoslynAnalyzers Ensure that JsonSerializerSettings are secure   New in this release

RoslynAnalyzers Ensure that JsonSerializerSettings are secure.

RoslynAnalyzers Ensure Use Secure Cookies In ASP.NET Core   New in this release

RoslynAnalyzers Ensure Use Secure Cookies In ASP.NET Core.

RoslynAnalyzers Enum Storage should be Int32   New in this release

RoslynAnalyzers Enum Storage should be Int32.

RoslynAnalyzers Enums should have zero value   New in this release

RoslynAnalyzers Enums should have zero value.

RoslynAnalyzers Enums values should not be duplicated   New in this release

RoslynAnalyzers Enums values should not be duplicated.

RoslynAnalyzers Events should not have 'Before' or 'After' prefix   New in this release

RoslynAnalyzers Events should not have 'Before' or 'After' prefix.

RoslynAnalyzers Exceptions should be public   New in this release

RoslynAnalyzers Exceptions should be public.

RoslynAnalyzers Forward the 'CancellationToken' parameter to methods   New in this release

RoslynAnalyzers Forward the 'CancellationToken' parameter to methods.

RoslynAnalyzers Generic interface should also be implemented   New in this release

RoslynAnalyzers Generic interface should also be implemented.

RoslynAnalyzers HttpClients should enable certificate revocation list checks   New in this release

RoslynAnalyzers HttpClients should enable certificate revocation list checks.

RoslynAnalyzers Identifier contains type name   New in this release

RoslynAnalyzers Identifier contains type name.

RoslynAnalyzers Identifiers should differ by more than case   New in this release

RoslynAnalyzers Identifiers should differ by more than case.

RoslynAnalyzers Identifiers should have correct prefix   New in this release

RoslynAnalyzers Identifiers should have correct prefix.

RoslynAnalyzers Identifiers should have correct suffix   New in this release

RoslynAnalyzers Identifiers should have correct suffix.

RoslynAnalyzers Identifiers should not contain underscores   New in this release

RoslynAnalyzers Identifiers should not contain underscores.

RoslynAnalyzers Identifiers should not have incorrect suffix   New in this release

RoslynAnalyzers Identifiers should not have incorrect suffix.

RoslynAnalyzers Identifiers should not match keywords   New in this release

RoslynAnalyzers Identifiers should not match keywords.

RoslynAnalyzers Implement IDisposable Correctly   New in this release

RoslynAnalyzers Implement IDisposable Correctly.

RoslynAnalyzers Implement IEquatable when overriding Object.Equals   New in this release

RoslynAnalyzers Implement IEquatable when overriding Object.Equals.

RoslynAnalyzers Implement standard exception constructors   New in this release

RoslynAnalyzers Implement standard exception constructors.

RoslynAnalyzers Improper 'ThreadStatic' field initialization   New in this release

RoslynAnalyzers Improper 'ThreadStatic' field initialization.

RoslynAnalyzers Incorrect usage of ConstantExpected attribute   New in this release

RoslynAnalyzers Incorrect usage of ConstantExpected attribute.

RoslynAnalyzers Initialize reference type static fields inline   New in this release

RoslynAnalyzers Initialize reference type static fields inline.

RoslynAnalyzers Initialize value type static fields inline   New in this release

RoslynAnalyzers Initialize value type static fields inline.

RoslynAnalyzers Insecure DTD processing in XML   New in this release

RoslynAnalyzers Insecure DTD processing in XML.

RoslynAnalyzers Insecure Processing in API Design, XmlDocument and XmlTextReader   New in this release

RoslynAnalyzers Insecure Processing in API Design, XmlDocument and XmlTextReader.

RoslynAnalyzers Insecure XSLT script processing   New in this release

RoslynAnalyzers Insecure XSLT script processing.

RoslynAnalyzers Instantiate argument exceptions correctly   New in this release

RoslynAnalyzers Instantiate argument exceptions correctly.

RoslynAnalyzers Interface methods should be callable by child types   New in this release

RoslynAnalyzers Interface methods should be callable by child types.

RoslynAnalyzers Invalid 'CustomMarshallerAttribute' usage   New in this release

RoslynAnalyzers Invalid 'CustomMarshallerAttribute' usage.

RoslynAnalyzers Invalid 'NativeMarshallingAttribute' usage   New in this release

RoslynAnalyzers Invalid 'NativeMarshallingAttribute' usage.

RoslynAnalyzers Invalid entry in code metrics rule specification file   New in this release

RoslynAnalyzers Invalid entry in code metrics rule specification file.

RoslynAnalyzers Mark all non-serializable fields   New in this release

RoslynAnalyzers Mark all non-serializable fields.

RoslynAnalyzers Mark assemblies with assembly version   New in this release

RoslynAnalyzers Mark assemblies with assembly version.

RoslynAnalyzers Mark assemblies with CLSCompliant   New in this release

RoslynAnalyzers Mark assemblies with CLSCompliant.

RoslynAnalyzers Mark assemblies with ComVisible   New in this release

RoslynAnalyzers Mark assemblies with ComVisible.

RoslynAnalyzers Mark assemblies with NeutralResourcesLanguageAttribute   New in this release

RoslynAnalyzers Mark assemblies with NeutralResourcesLanguageAttribute.

RoslynAnalyzers Mark attributes with AttributeUsageAttribute   New in this release

RoslynAnalyzers Mark attributes with AttributeUsageAttribute.

RoslynAnalyzers Mark enums with FlagsAttribute   New in this release

RoslynAnalyzers Mark enums with FlagsAttribute.

RoslynAnalyzers Mark ISerializable types with serializable   New in this release

RoslynAnalyzers Mark ISerializable types with serializable.

RoslynAnalyzers Mark members as static   New in this release

RoslynAnalyzers Mark members as static.

RoslynAnalyzers Mark Verb Handlers With Validate Antiforgery Token   New in this release

RoslynAnalyzers Mark Verb Handlers With Validate Antiforgery Token.

RoslynAnalyzers Marshaller type does not have the required shape   New in this release

RoslynAnalyzers Marshaller type does not have the required shape.

RoslynAnalyzers Marshaller type has incompatible method signatures   New in this release

RoslynAnalyzers Marshaller type has incompatible method signatures.

RoslynAnalyzers Members defined on an interface with the 'DynamicInterfaceCastableImplementationAttribute' should be 'static'   New in this release

RoslynAnalyzers Members defined on an interface with the 'DynamicInterfaceCastableImplementationAttribute' should be 'static'.

RoslynAnalyzers Miss HttpVerb attribute for action methods   New in this release

RoslynAnalyzers Miss HttpVerb attribute for action methods.

RoslynAnalyzers Move pinvokes to native methods class   New in this release

RoslynAnalyzers Move pinvokes to native methods class.

RoslynAnalyzers Named placeholders should not be numeric values   New in this release

RoslynAnalyzers Named placeholders should not be numeric values.

RoslynAnalyzers Nested types should not be visible   New in this release

RoslynAnalyzers Nested types should not be visible.

RoslynAnalyzers Non-constant fields should not be visible   New in this release

RoslynAnalyzers Non-constant fields should not be visible.

RoslynAnalyzers Normalize strings to uppercase   New in this release

RoslynAnalyzers Normalize strings to uppercase.

RoslynAnalyzers Operator overloads have named alternates   New in this release

RoslynAnalyzers Operator overloads have named alternates.

RoslynAnalyzers Operators should have symmetrical overloads   New in this release

RoslynAnalyzers Operators should have symmetrical overloads.

RoslynAnalyzers Overload operator equals on overriding value type Equals   New in this release

RoslynAnalyzers Overload operator equals on overriding value type Equals.

RoslynAnalyzers Override equals and operator equals on value types   New in this release

RoslynAnalyzers Override equals and operator equals on value types.

RoslynAnalyzers Override methods on comparable types   New in this release

RoslynAnalyzers Override methods on comparable types.

RoslynAnalyzers Override Object.Equals(object) when implementing IEquatable<T>   New in this release

RoslynAnalyzers Override Object.Equals(object) when implementing IEquatable<T>.

RoslynAnalyzers P/Invokes should not be visible   New in this release

RoslynAnalyzers P/Invokes should not be visible.

RoslynAnalyzers Parameter count mismatch   New in this release

RoslynAnalyzers Parameter count mismatch.

RoslynAnalyzers Parameter names should match base declaration   New in this release

RoslynAnalyzers Parameter names should match base declaration.

RoslynAnalyzers Pass system uri objects instead of strings   New in this release

RoslynAnalyzers Pass system uri objects instead of strings.

RoslynAnalyzers Possible multiple enumerations of 'IEnumerable' collection   New in this release

RoslynAnalyzers Possible multiple enumerations of 'IEnumerable' collection.

RoslynAnalyzers Potential reference cycle in deserialized object graph   New in this release

RoslynAnalyzers Potential reference cycle in deserialized object graph.

RoslynAnalyzers Prefer 'AsSpan' over 'Substring'   New in this release

RoslynAnalyzers Prefer 'AsSpan' over 'Substring'.

RoslynAnalyzers Prefer 'Clear' over 'Fill'   New in this release

RoslynAnalyzers Prefer 'Clear' over 'Fill'.

RoslynAnalyzers Prefer 'Convert.ToHexString' and 'Convert.ToHexStringLower' over call chains based on 'BitConverter.ToString'   New in this release

RoslynAnalyzers Prefer 'Convert.ToHexString' and 'Convert.ToHexStringLower' over call chains based on 'BitConverter.ToString'.

RoslynAnalyzers Prefer Dictionary.Contains methods   New in this release

RoslynAnalyzers Prefer Dictionary.Contains methods.

RoslynAnalyzers Prefer generic overload when type is known   New in this release

RoslynAnalyzers Prefer generic overload when type is known.

RoslynAnalyzers Prefer IsEmpty over Count   New in this release

RoslynAnalyzers Prefer IsEmpty over Count.

RoslynAnalyzers Prefer jagged arrays over multidimensional   New in this release

RoslynAnalyzers Prefer jagged arrays over multidimensional.

RoslynAnalyzers Prefer static 'HashData' method over 'ComputeHash'   New in this release

RoslynAnalyzers Prefer static 'HashData' method over 'ComputeHash'.

RoslynAnalyzers Prefer strongly-typed Append and Insert method overloads on StringBuilder   New in this release

RoslynAnalyzers Prefer strongly-typed Append and Insert method overloads on StringBuilder.

RoslynAnalyzers Prefer the 'IDictionary.TryAdd(TKey, TValue)' method   New in this release

RoslynAnalyzers Prefer the 'IDictionary.TryAdd(TKey, TValue)' method.

RoslynAnalyzers Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method   New in this release

RoslynAnalyzers Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method.

RoslynAnalyzers Prefer the 'Memory'-based overloads for 'ReadAsync' and 'WriteAsync'   New in this release

RoslynAnalyzers Prefer the 'Memory'-based overloads for 'ReadAsync' and 'WriteAsync'.

RoslynAnalyzers Prevent behavioral change   New in this release

RoslynAnalyzers Prevent behavioral change.

RoslynAnalyzers Properties should not be write only   New in this release

RoslynAnalyzers Properties should not be write only.

RoslynAnalyzers Properties should not return arrays   New in this release

RoslynAnalyzers Properties should not return arrays.

RoslynAnalyzers Property names should not match get methods   New in this release

RoslynAnalyzers Property names should not match get methods.

RoslynAnalyzers Property, type, or attribute requires runtime marshalling   New in this release

RoslynAnalyzers Property, type, or attribute requires runtime marshalling.

RoslynAnalyzers Provide a parameterless constructor that is as visible as the containing type for concrete types derived from 'System.Runtime.InteropServices.SafeHandle'   New in this release

RoslynAnalyzers Provide a parameterless constructor that is as visible as the containing type for concrete types derived from 'System.Runtime.InteropServices.SafeHandle'.

RoslynAnalyzers Provide correct 'enum' argument to 'Enum.HasFlag'   New in this release

RoslynAnalyzers Provide correct 'enum' argument to 'Enum.HasFlag'.

RoslynAnalyzers Provide correct arguments to formatting methods   New in this release

RoslynAnalyzers Provide correct arguments to formatting methods.

RoslynAnalyzers Provide memory-based overrides of async methods when subclassing 'Stream'   New in this release

RoslynAnalyzers Provide memory-based overrides of async methods when subclassing 'Stream'.

RoslynAnalyzers Provide ObsoleteAttribute message   New in this release

RoslynAnalyzers Provide ObsoleteAttribute message.

RoslynAnalyzers Providing a 'DynamicInterfaceCastableImplementation' interface in Visual Basic is unsupported   New in this release

RoslynAnalyzers Providing a 'DynamicInterfaceCastableImplementation' interface in Visual Basic is unsupported.

RoslynAnalyzers Remove empty Finalizers   New in this release

RoslynAnalyzers Remove empty Finalizers.

RoslynAnalyzers Rethrow to preserve stack details   New in this release

RoslynAnalyzers Rethrow to preserve stack details.

RoslynAnalyzers Review cipher mode usage with cryptography experts   New in this release

RoslynAnalyzers Review cipher mode usage with cryptography experts.

RoslynAnalyzers Review code for DLL injection vulnerabilities   New in this release

RoslynAnalyzers Review code for DLL injection vulnerabilities.

RoslynAnalyzers Review code for file path injection vulnerabilities   New in this release

RoslynAnalyzers Review code for file path injection vulnerabilities.

RoslynAnalyzers Review code for information disclosure vulnerabilities   New in this release

RoslynAnalyzers Review code for information disclosure vulnerabilities.

RoslynAnalyzers Review code for LDAP injection vulnerabilities   New in this release

RoslynAnalyzers Review code for LDAP injection vulnerabilities.

RoslynAnalyzers Review code for open redirect vulnerabilities   New in this release

RoslynAnalyzers Review code for open redirect vulnerabilities.

RoslynAnalyzers Review code for process command injection vulnerabilities   New in this release

RoslynAnalyzers Review code for process command injection vulnerabilities.

RoslynAnalyzers Review code for regex injection vulnerabilities   New in this release

RoslynAnalyzers Review code for regex injection vulnerabilities.

RoslynAnalyzers Review code for SQL injection vulnerabilities   New in this release

RoslynAnalyzers Review code for SQL injection vulnerabilities.

RoslynAnalyzers Review code for XAML injection vulnerabilities   New in this release

RoslynAnalyzers Review code for XAML injection vulnerabilities.

RoslynAnalyzers Review code for XML injection vulnerabilities   New in this release

RoslynAnalyzers Review code for XML injection vulnerabilities.

RoslynAnalyzers Review code for XPath injection vulnerabilities   New in this release

RoslynAnalyzers Review code for XPath injection vulnerabilities.

RoslynAnalyzers Review code for XSS vulnerabilities   New in this release

RoslynAnalyzers Review code for XSS vulnerabilities.

RoslynAnalyzers Review SQL queries for security vulnerabilities   New in this release

RoslynAnalyzers Review SQL queries for security vulnerabilities.

RoslynAnalyzers Seal internal types   New in this release

RoslynAnalyzers Seal internal types.

RoslynAnalyzers Seal methods that satisfy private interfaces   New in this release

RoslynAnalyzers Seal methods that satisfy private interfaces.

RoslynAnalyzers Set 'MaxResponseHeadersLength' properly   New in this release

RoslynAnalyzers Set 'MaxResponseHeadersLength' properly.

RoslynAnalyzers Set HttpOnly to true for HttpCookie   New in this release

RoslynAnalyzers Set HttpOnly to true for HttpCookie.

RoslynAnalyzers Set ViewStateUserKey For Classes Derived From Page   New in this release

RoslynAnalyzers Set ViewStateUserKey For Classes Derived From Page.

RoslynAnalyzers Specified marshaller type is invalid   New in this release

RoslynAnalyzers Specified marshaller type is invalid.

RoslynAnalyzers Specify a culture or use an invariant version   New in this release

RoslynAnalyzers Specify a culture or use an invariant version.

RoslynAnalyzers Specify CultureInfo   New in this release

RoslynAnalyzers Specify CultureInfo.

RoslynAnalyzers Specify IFormatProvider   New in this release

RoslynAnalyzers Specify IFormatProvider.

RoslynAnalyzers Specify marshaling for P/Invoke string arguments   New in this release

RoslynAnalyzers Specify marshaling for P/Invoke string arguments.

RoslynAnalyzers Specify StringComparison for clarity   New in this release

RoslynAnalyzers Specify StringComparison for clarity.

RoslynAnalyzers Specify StringComparison for correctness   New in this release

RoslynAnalyzers Specify StringComparison for correctness.

RoslynAnalyzers Static holder types should be Static or NotInheritable   New in this release

RoslynAnalyzers Static holder types should be Static or NotInheritable.

RoslynAnalyzers Template should be a static expression   New in this release

RoslynAnalyzers Template should be a static expression.

RoslynAnalyzers Test for empty strings using string length   New in this release

RoslynAnalyzers Test for empty strings using string length.

RoslynAnalyzers Test for NaN correctly   New in this release

RoslynAnalyzers Test for NaN correctly.

RoslynAnalyzers The 'ModuleInitializer' attribute should not be used in libraries   New in this release

RoslynAnalyzers The 'ModuleInitializer' attribute should not be used in libraries.

RoslynAnalyzers This API requires opting into preview features   New in this release

RoslynAnalyzers This API requires opting into preview features.

RoslynAnalyzers This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied   New in this release

RoslynAnalyzers This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied.

RoslynAnalyzers Type names should not match namespaces   New in this release

RoslynAnalyzers Type names should not match namespaces.

RoslynAnalyzers Types should not extend certain base types   New in this release

RoslynAnalyzers Types should not extend certain base types.

RoslynAnalyzers Types that own disposable fields should be disposable   New in this release

RoslynAnalyzers Types that own disposable fields should be disposable.

RoslynAnalyzers Unnecessary call to 'Contains(item)'   New in this release

RoslynAnalyzers Unnecessary call to 'Contains(item)'.

RoslynAnalyzers Unnecessary call to 'Dictionary.ContainsKey(key)'   New in this release

RoslynAnalyzers Unnecessary call to 'Dictionary.ContainsKey(key)'.

RoslynAnalyzers Unsafe DataSet or DataTable in auto-generated serializable type can be vulnerable to remote code execution attacks   New in this release

RoslynAnalyzers Unsafe DataSet or DataTable in auto-generated serializable type can be vulnerable to remote code execution attacks.

RoslynAnalyzers Unsafe DataSet or DataTable in deserialized object graph can be vulnerable to remote code execution attacks   New in this release

RoslynAnalyzers Unsafe DataSet or DataTable in deserialized object graph can be vulnerable to remote code execution attacks.

RoslynAnalyzers Unsafe DataSet or DataTable in serializable type   New in this release

RoslynAnalyzers Unsafe DataSet or DataTable in serializable type.

RoslynAnalyzers Unsafe DataSet or DataTable in serializable type can be vulnerable to remote code execution attacks   New in this release

RoslynAnalyzers Unsafe DataSet or DataTable in serializable type can be vulnerable to remote code execution attacks.

RoslynAnalyzers Unsafe DataSet or DataTable type found in deserializable object graph   New in this release

RoslynAnalyzers Unsafe DataSet or DataTable type found in deserializable object graph.

RoslynAnalyzers Unsafe DataSet or DataTable type in web deserializable object graph   New in this release

RoslynAnalyzers Unsafe DataSet or DataTable type in web deserializable object graph.

RoslynAnalyzers URI-like parameters should not be strings   New in this release

RoslynAnalyzers URI-like parameters should not be strings.

RoslynAnalyzers URI-like properties should not be strings   New in this release

RoslynAnalyzers URI-like properties should not be strings.

RoslynAnalyzers URI-like return values should not be strings   New in this release

RoslynAnalyzers URI-like return values should not be strings.

RoslynAnalyzers Use 'CompositeFormat'   New in this release

RoslynAnalyzers Use 'CompositeFormat'.

RoslynAnalyzers Use 'Environment.CurrentManagedThreadId'   New in this release

RoslynAnalyzers Use 'Environment.CurrentManagedThreadId'.

RoslynAnalyzers Use 'Environment.ProcessId'   New in this release

RoslynAnalyzers Use 'Environment.ProcessId'.

RoslynAnalyzers Use 'Environment.ProcessPath'   New in this release

RoslynAnalyzers Use 'Environment.ProcessPath'.

RoslynAnalyzers Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time   New in this release

RoslynAnalyzers Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time.

RoslynAnalyzers Use 'StartsWith' instead of 'IndexOf'   New in this release

RoslynAnalyzers Use 'StartsWith' instead of 'IndexOf'.

RoslynAnalyzers Use 'string.Equals'   New in this release

RoslynAnalyzers Use 'string.Equals'.

RoslynAnalyzers Use 'ThrowIfCancellationRequested'   New in this release

RoslynAnalyzers Use 'ThrowIfCancellationRequested'.

RoslynAnalyzers Use a cached 'SearchValues' instance   New in this release

RoslynAnalyzers Use a cached 'SearchValues' instance.

RoslynAnalyzers Use antiforgery tokens in ASP.NET Core MVC controllers   New in this release

RoslynAnalyzers Use antiforgery tokens in ASP.NET Core MVC controllers.

RoslynAnalyzers Use ArgumentException throw helper   New in this release

RoslynAnalyzers Use ArgumentException throw helper.

RoslynAnalyzers Use ArgumentNullException throw helper   New in this release

RoslynAnalyzers Use ArgumentNullException throw helper.

RoslynAnalyzers Use ArgumentOutOfRangeException throw helper   New in this release

RoslynAnalyzers Use ArgumentOutOfRangeException throw helper.

RoslynAnalyzers Use AsSpan or AsMemory instead of Range-based indexers when appropriate   New in this release

RoslynAnalyzers Use AsSpan or AsMemory instead of Range-based indexers when appropriate.

RoslynAnalyzers Use char literal for a single character lookup   New in this release

RoslynAnalyzers Use char literal for a single character lookup.

RoslynAnalyzers Use char overload   New in this release

RoslynAnalyzers Use char overload.

RoslynAnalyzers Use concrete types when possible for improved performance   New in this release

RoslynAnalyzers Use concrete types when possible for improved performance.

RoslynAnalyzers Use Container Level Access Policy   New in this release

RoslynAnalyzers Use Container Level Access Policy.

RoslynAnalyzers Use correct type parameter   New in this release

RoslynAnalyzers Use correct type parameter.

RoslynAnalyzers Use CreateEncryptor with the default IV   New in this release

RoslynAnalyzers Use CreateEncryptor with the default IV.

RoslynAnalyzers Use DefaultDllImportSearchPaths attribute for P/Invokes   New in this release

RoslynAnalyzers Use DefaultDllImportSearchPaths attribute for P/Invokes.

RoslynAnalyzers Use events where appropriate   New in this release

RoslynAnalyzers Use events where appropriate.

RoslynAnalyzers Use generic event handler instances   New in this release

RoslynAnalyzers Use generic event handler instances.

RoslynAnalyzers Use Integral Or String Argument For Indexers   New in this release

RoslynAnalyzers Use Integral Or String Argument For Indexers.

RoslynAnalyzers Use Length/Count property instead of Count() when available   New in this release

RoslynAnalyzers Use Length/Count property instead of Count() when available.

RoslynAnalyzers Use literals where appropriate   New in this release

RoslynAnalyzers Use literals where appropriate.

RoslynAnalyzers Use nameof to express symbol names   New in this release

RoslynAnalyzers Use nameof to express symbol names.

RoslynAnalyzers Use ObjectDisposedException throw helper   New in this release

RoslynAnalyzers Use ObjectDisposedException throw helper.

RoslynAnalyzers Use ordinal string comparison   New in this release

RoslynAnalyzers Use ordinal string comparison.

RoslynAnalyzers Use PascalCase for named placeholders   New in this release

RoslynAnalyzers Use PascalCase for named placeholders.

RoslynAnalyzers Use properties where appropriate   New in this release

RoslynAnalyzers Use properties where appropriate.

RoslynAnalyzers Use Rivest-Shamir-Adleman (RSA) Algorithm With Sufficient Key Size   New in this release

RoslynAnalyzers Use Rivest-Shamir-Adleman (RSA) Algorithm With Sufficient Key Size.

RoslynAnalyzers Use Secure Cookies In ASP.NET Core   New in this release

RoslynAnalyzers Use Secure Cookies In ASP.NET Core.

RoslynAnalyzers Use SharedAccessProtocol HttpsOnly   New in this release

RoslynAnalyzers Use SharedAccessProtocol HttpsOnly.

RoslynAnalyzers Use span-based 'string.Concat'   New in this release

RoslynAnalyzers Use span-based 'string.Concat'.

RoslynAnalyzers Use the 'StringComparison' method overloads to perform case-insensitive string comparisons   New in this release

RoslynAnalyzers Use the 'StringComparison' method overloads to perform case-insensitive string comparisons.

RoslynAnalyzers Use the LoggerMessage delegates   New in this release

RoslynAnalyzers Use the LoggerMessage delegates.

RoslynAnalyzers Use valid platform string   New in this release

RoslynAnalyzers Use valid platform string.

RoslynAnalyzers Use ValueTasks correctly   New in this release

RoslynAnalyzers Use ValueTasks correctly.

RoslynAnalyzers Use XmlReader for 'DataSet.ReadXml()'   New in this release

RoslynAnalyzers Use XmlReader for 'DataSet.ReadXml()'.

RoslynAnalyzers Use XmlReader for 'XmlSchema.Read()'   New in this release

RoslynAnalyzers Use XmlReader for 'XmlSchema.Read()'.

RoslynAnalyzers Use XmlReader for 'XmlSerializer.Deserialize()'   New in this release

RoslynAnalyzers Use XmlReader for 'XmlSerializer.Deserialize()'.

RoslynAnalyzers Use XmlReader for XmlValidatingReader constructor   New in this release

RoslynAnalyzers Use XmlReader for XmlValidatingReader constructor.

RoslynAnalyzers Use XmlReader for XPathDocument constructor   New in this release

RoslynAnalyzers Use XmlReader for XPathDocument constructor.

RoslynAnalyzers Validate arguments of public methods   New in this release

RoslynAnalyzers Validate arguments of public methods.

RoslynAnalyzers Validate platform compatibility   New in this release

RoslynAnalyzers Validate platform compatibility.

Last modified: 29 July 2025