Did you know; we need this operator!

Salih Dincer salihdb at hotmail.com
Wed Sep 18 18:55:51 UTC 2024


On Wednesday, 18 September 2024 at 16:30:41 UTC, Kagamin wrote:
> If you have an extra scope to apply, it already works:
> ```d
> with(Days)
> switch(day)
> {
> case Monday:
>      …;
>      break;
> case Tuesday:
>      …;
>      break;
> }
> ```

Is there a with() in C#? It seems like there isn't one; record 
has a with!

SDB at 79


More information about the Digitalmars-d mailing list