^ Operator in C#

  • Thread starter Thread starter Arash_89
  • Start date Start date
A

Arash_89

Guest
Hello,

I have two question

1. What do do we call ^ in English and programming languages?

2. How can ^margin and ^amountToTakeFromEnd and ^0 calculate?

Thanks in advance

int margin = 1;
int[] inner = numbers[margin..^margin];
Display(inner); // output: 10 20 30 40

string line = "one two three";
int amountToTakeFromEnd = 5;
Range endIndices = ^amountToTakeFromEnd..^0;
string end = line[endIndices];

Continue reading...
 
Back
Top