dotnet / dotnet/csharplang

[Proposal]: call local static functions in base constructor

Open
#8,620 0 comments 0 reactions 1 assignee Claimed by @333fred View on GitHub
Needs Approved Specification Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

# call local static functions in base constructor

* Specification: Needs approved specification
* Discussion: https://github.com/dotnet/csharplang/discussions/8619

## Summary
[summary]: #summary

Today to calculate parameters to be sent from derived class constructor to base constructor one has to define additional static method in derived class. It would be nice to use local static function instead.

## Design meetings

* https://github.com/dotnet/csharplang/blob/master/meetings/2020/LDM-2020-10-26.md#static-local-functions-in-base-calls
* https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-09-28.md#ungrouped

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.