Namespace · Antril

System

Types

static class Activator Objects of types known at run time.
class Any
class ArgumentError An argument out of what the method takes.
class ArgumentOutOfRangeError An argument outside the values it may take.
static class Array
base class Attribute What custom attributes derive from: a class derived from it can be written in […] on a type or a member (with constant arguments), and reflection gives its objects (GetCustomAttributes).
value Boolean
final class Boxed<T> What an any holds a function value or a pointer in (neither is an object of its own): any a = f; makes one, (func<i32> : i32)a takes the value back out.
static class Char
static class Console
final class DateFields internal What reading a date found.
value DateTime A moment on the calendar, from 0001-01-01 to 9999-12-31, to 100 ns, and whose clock it reads (Kind).
enum DateTimeKind Whose clock a DateTime reads: not said, UTC's, or the local time zone's.
bitflag enum DateTimeStyles How Parse reads a date.
static class Dates internal The calendar's arithmetic (proleptic Gregorian, days since 0001-01-01).
enum DayOfWeek The days of the week, from Sunday (0).
final class DecimalDigits internal A number's exact decimal digits: value = 0.d1 d2 … × 10^Point (digits 0..9, no leading zero; Count 0: zero).
class Dictionary<K, V>
value DictionaryIterator<K, V> The pairs of a dictionary, in the table's order.
static class Environment
class Exception
static class Exchange
static class Fail Throws the library's errors from one place, so the methods that check stay small (and are inlined).
value Float128
value Float16
value Float256
value Float32
value Float64
class FormatError Text that is not what it should be (a number to parse…).
final attribute FriendOfAttribute [FriendOf(T)] on a type makes it and T friends, from any assembly: each sees the other's friendly members.
static class GC The collector (System.GC): asking for a collection, and what it has done.
class HashSet<T> A set of values by hash: Add, Contains, Remove, and loop (T item in set).
interface IComparable<TSelf> Values with an order: -1, 0 or 1 as this value is smaller than, equal to or larger than other.
interface IHashable<TSelf> Values that can be keys of a Dictionary or members of a HashSet: equal values (Equals) have the same Hash().
interface INumber<TSelf> A number: +, -, *, /, %, == and < on two of them (so != and > too), the constants Zero and One, and FromF64/ToF64.
interface ISignedNumber<TSelf> A number with a sign: negation and minus one.
interface IToString What has a text of its own: ToString().
class IndexError An index outside a collection.
value Int128
value Int16
value Int256
value Int32
value Int64
value Int8
class InvalidCastError A value of the wrong type given to a member through reflection (or a target that is not the member's).
class InvalidOperationError Something the object cannot do in its state (an empty list's last element…).
base class Iterator<T> The values of a function with yield, made one at a time: each Next() runs the function on to its next yield.
class KeyNotFoundError A key a dictionary does not have.
value KeyValuePair<K, V>
class LinkedList<T> A doubly linked list: adding and removing at either end, or next to a node, costs the same at any size.
value LinkedListIterator<T> The values of a linked list, from the first.
final class LinkedListNode<T> A node of a LinkedList: its value, and its neighbours (null at the ends, and once it has been removed).
class List<T>
value ListIterator<T> The items of a list, in order.
static class Lists What List<T> offers when its items can be compared or tested for equality.
static class LocalZone internal The local time zone's offset from UTC, asked of the system once per quarter hour of UTC (zones change their offset only on quarter hours).
static class Math
class MissingMemberError A member asked for through reflection is not there (no such constructor or method).
class NotSupportedError Something reflection cannot do (setting a field of a boxed value, a value that is not an object).
static class Number Numbers as text and back.
static class NumberFormat Numbers formatted as text (what the primitives' ToString(format) call).
final class NumberText internal The text a format makes: bytes (ASCII), grown as needed, then one string of exactly them.
class OverflowError A number too big (or too small) for its type, in checked arithmetic or a checked conversion.
class PriorityQueue<E, P> Elements with priorities; Dequeue gives one with the smallest priority (among equals, in no set order).
class Queue<T> First in, first out: Enqueue at the end, Dequeue from the front (a ring buffer).
class Random Pseudo-random numbers.
static class Records
final class ResourceData Read-only bytes of a resource, read in place from the program's static data (no copy): indexed, iterated, sliced.
value ResourceIterator loop (u8 b in data) over a ResourceData.
static class Resources
class SortedDictionary<K, V> A map from keys to values kept in key order: Set, Get, map[key], TryGet, ContainsKey, Remove, MinKey, MaxKey, and loop (KeyValuePair<K, V> pair in map) from the smallest key.
value SortedIterator<K, V> The pairs of a sorted map, from the smallest key: an in-order walk with its own stack.
class SortedSet<T> A set kept in order: Add, Contains, Remove, Min, Max, and loop (T item in set) from the smallest.
value SortedSetIterator<T>
value Span<T> A run of an array's elements, seen in place: span[i] reads and writes the array, Slice makes a smaller view, nothing is copied.
value SpanIterator<T> The elements of a span, in order.
static class Spans What spans of comparable, equatable and number elements can do.
class Stack<T> Last in, first out: Push and Pop at the top.
final class String<T>
final class StringBuilder
value StringIterator<T> The code units of a string, in order.
static class TimeFormat internal Dates and lengths of time as text, and read back.
value TimeSpan A length of time (negative too): ticks of 100 ns.
final class TimeText internal Text being written for a date or a length of time.
record class Tuple<T1> 1 item in an object: Item1, fixed when it is made.
record class Tuple<T1, T2> 2 items in an object: Item1…Item2, fixed when it is made.
record class Tuple<T1, T2, T3> 3 items in an object: Item1…Item3, fixed when it is made.
record class Tuple<T1, T2, T3, T4> 4 items in an object: Item1…Item4, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5> 5 items in an object: Item1…Item5, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6> 6 items in an object: Item1…Item6, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7> 7 items in an object: Item1…Item7, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8> 8 items in an object: Item1…Item8, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9> 9 items in an object: Item1…Item9, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> 10 items in an object: Item1…Item10, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> 11 items in an object: Item1…Item11, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> 12 items in an object: Item1…Item12, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> 13 items in an object: Item1…Item13, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> 14 items in an object: Item1…Item14, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> 15 items in an object: Item1…Item15, fixed when it is made.
record class Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> 16 items in an object: Item1…Item16, fixed when it is made.
final class Type A type at run time: typeof(T) and x.GetType() give the same object for the same type (compare with ==).
value UInt128
value UInt16
value UInt256
value UInt32
value UInt64
value UInt8
static class Unicode Code points to and from UTF-8, UTF-16 and UTF-32 units (the unit type says which).
record value ValueTuple<T1> 1 item in a value: Item1, which can be changed.
record value ValueTuple<T1, T2> 2 items in a value: Item1…Item2, which can be changed.
record value ValueTuple<T1, T2, T3> 3 items in a value: Item1…Item3, which can be changed.
record value ValueTuple<T1, T2, T3, T4> 4 items in a value: Item1…Item4, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5> 5 items in a value: Item1…Item5, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6> 6 items in a value: Item1…Item6, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7> 7 items in a value: Item1…Item7, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8> 8 items in a value: Item1…Item8, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9> 9 items in a value: Item1…Item9, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> 10 items in a value: Item1…Item10, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> 11 items in a value: Item1…Item11, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> 12 items in a value: Item1…Item12, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> 13 items in a value: Item1…Item13, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> 14 items in a value: Item1…Item14, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> 15 items in a value: Item1…Item15, which can be changed.
record value ValueTuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> 16 items in a value: Item1…Item16, which can be changed.

Extensions

ext<T : bitflag enum>(T flags)

HasFlag(T x) : bool
#

Whether every bit of x is set ((flags & x) == x).

HasAny(T x) : bool
#

Whether any bit of x is set.

With(T x) : T
#

The flags with the bits of x set.

Without(T x) : T
#

The flags with the bits of x cleared.

Toggle(T x) : T
#

The flags with the bits of x flipped.

Esc