DEV Community

Discussion on: What's new in C# 7.3?

Collapse
 
ilmtitan profile image
Jim Przybylinski • Edited

Expression Variables in Initializers

I think it will let us do something like this:

public ChildClass : BaseClass {
    public ChildClass(int param) :
        base(ReturnAndOutMethod(param, out var outVar), outVar)
    {
    }
}
Collapse
 
borrrden profile image
Jim Borden

Oh, that could be!