Skip to content

Commit

Permalink
Merge be831b0 into be96e63
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih authored Nov 16, 2023
2 parents be96e63 + be831b0 commit 5fac416
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions samples/csharp/src/CSharp12.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ public void Withdrawal(decimal amount)

public class CollectionExpressions
{
public static int[] a = [1, 2, 3, 4, 5, 6, 7, 8];
static CollectionExpressions()
{
Span<int> b = ['a', 'b', 'c', 'd', 'e', 'f', 'h', 'i'];
}

public static Span<int> b => ['a', 'b', 'c', 'd', 'e', 'f', 'h', 'i'];
public static int[] a = [1, 2, 3, 4, 5, 6, 7, 8];

public static int[][] twoD = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
}
Expand All @@ -76,3 +79,8 @@ public struct InlineArrays
{
private int _element0;
}

public class RefReadOnlyParameters
{
public void Foo(ref readonly int bar) { }
}

0 comments on commit 5fac416

Please sign in to comment.