Skip to content

Remark on SqlConnectionStringBuilder.ShouldSerialize method is not universally true. #1851

Open
@harrisaoz

Description

@harrisaoz

In order to make the correct decision between using ShouldSerialize and ContainsKey,
As an API consumer
I would like to understand the distinction between the two, and ideally the scenarios to which each is best suited (as I'm sure there was intent in the distinction which has not been disclosed in the documentation).

The Remark needs elaboration to detail the context in which the statement may be true, and perhaps the rationale for the difference (or simply remove the Remark).
See the below repro (fsi).

> let builder = SqlConnectionStringBuilder "";;
val builder: SqlConnectionStringBuilder = dict []

> builder.ContainsKey "Application Name";;
val it: bool = true

> builder.ShouldSerialize "Application Name";;
val it: bool = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area\DocumentationUse this for issues that requires changes in public documentations/samples.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions