mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
23 lines
522 B
C#
23 lines
522 B
C#
using System.Collections.ObjectModel;
|
|
|
|
class Good1
|
|
{
|
|
class Range
|
|
{
|
|
private ReadOnlyCollection<int> rarray = new ReadOnlyCollection<int>(new int[2]);
|
|
|
|
public Range(int min, int max)
|
|
{
|
|
if (min <= max)
|
|
{
|
|
int[] rarray = new int[2];
|
|
rarray[0] = min;
|
|
rarray[1] = max;
|
|
this.rarray = new ReadOnlyCollection<int>(rarray);
|
|
}
|
|
}
|
|
|
|
public ReadOnlyCollection<int> Get() => rarray;
|
|
}
|
|
}
|