Catrobat.IDE.Core.CatrobatObjects.Range.FromIndices C# (CSharp) Méthode

FromIndices() public static méthode

public static FromIndices ( int start, int end ) : Range
start int
end int
Résultat Range
        public static Range FromIndices(int start, int end)
        {
            return new Range(start, end - start);
        }
        public static Range Empty(int start)

Usage Example

Exemple #1
0
 public static Range Combine(Range x, Range y)
 {
     return(Range.FromIndices(Math.Min(x.Start, y.Start), Math.Max(x.End, y.End)));
 }