Skip to content

Feature: Introduce an @Override attribute language feature #4

@Lamparter

Description

@Lamparter

The @Override attribute would allow you to copy the @Override function from Java into C#/VB by using the attribute that comes with its package.

For example:

[@Override]
public partial string ExampleProperty { get; set; }

would generate:

public override string ExampleProperty { get; set; }

Similar to how this might look in Java:

@Override
public String getExampleProperty() {
    return exampleProperty;
}

@Override
public void setExampleProperty(String value) {
    this.exampleProperty = value;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions