Skip to content

[C#] For span based properties, is there a reason we return a new empty array when its not in the current version, rather than Array.Empty? #1079

@dqwork

Description

@dqwork

See this line of code

https://github.com/aeron-io/simple-binary-encoding/blob/master/sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpGenerator.java#L1144

is there a reason this doesn't generate returning Array.Empty<{type}>() rather than creating a new Array everytime?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions