Skip to content

Instantly share code, notes, and snippets.

@akarpov89
Created December 3, 2018 14:27
Show Gist options
  • Save akarpov89/c7077430ea974996271a3f57541bbccc to your computer and use it in GitHub Desktop.
Save akarpov89/c7077430ea974996271a3f57541bbccc to your computer and use it in GitHub Desktop.
Index and Range API stub
namespace System
{
public readonly partial struct Index : System.IEquatable<System.Index>
{
private readonly int _dummyPrimitive;
public Index(int value, bool fromEnd) { throw null; }
public int Value { get { throw null; } }
public bool FromEnd { get { throw null; } }
public override bool Equals(object value) { throw null; }
public bool Equals(Index other) { throw null; }
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
public static implicit operator Index(int value) { throw null; }
}
public readonly partial struct Range : System.IEquatable<System.Range>
{
private readonly int _dummyPrimitive;
public Index Start { get { throw null; } }
public Index End { get { throw null; } }
public override bool Equals(object value) { throw null; }
public bool Equals(Range other) { throw null; }
public override int GetHashCode() { throw null; }
public override string ToString() { throw null; }
public static Range Create(Index start, Index end) { throw null; }
public static Range FromStart(Index start) { throw null; }
public static Range ToEnd(Index end) { throw null; }
public static Range All() { throw null; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment