Skip to content

NullConditionalExpression should also be used in a fluent style #3798

@ArcturusZhang

Description

@ArcturusZhang

Now the only way to construct the following expression

input?.ToList()

is

new NullConditionalExpression(input).ToList()

which is not following our style of fluent expression usages, we should update to have:

input.NullConditional().ToList()

Metadata

Metadata

Assignees

Labels

emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions