Skip to content

Publish list of APIs that are recommended for BannedApiAnalyzer #244

@timmydo

Description

@timmydo

Describe the bug

Migrations utilizing NoGetByIntNameValueCollection should also utilize a banned api analyzer to help prevent runtime exceptions.

Exceptions (if any)

Platform not supported exception

Further technical details

https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.BannedApiAnalyzers/BannedApiAnalyzers.Help.md

something like this for the banned symbols text file:

M:System.Collections.Specialized.NameValueCollection.Get(System.Int32);Don't use BannedType
M:System.Collections.Specialized.NameValueCollection.GetKey(System.Int32);Don't use BannedType
P:System.Collections.Specialized.NameValueCollection.Item(System.Int32);Don't use BannedType
M:System.Collections.Specialized.NameValueCollection.GetValues(System.Int32);Don't use BannedType
P:System.Collections.Specialized.NameValueCollection.Keys;Don't use BannedType
P:System.Collections.Specialized.NameObjectCollectionBase.Keys;Don't use BannedType
M:System.Collections.Specialized.NameValueCollection.#ctor(System.Collections.Specialized.NameValueCollection);Don't use BannedType
M:System.Collections.Specialized.NameValueCollection.Add(System.Collections.Specialized.NameValueCollection);Don't use BannedType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions