class · System

Any

public class Any
Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public
Archivo fuente
Any.ant

Herencia

Tipos derivados
Activator Array Attribute BindingModel BindingProfile BindingRunner BindingSettings CConstant CEnum CEnumMember CField CFunction CParameter CStruct CType Names Place Boxed<T> Char Console DateFields Dates DecimalDigits Process ProcessResult Stopwatch Dictionary<K, V> Environment Exception Exchange Fail GC HashSet<T> BinaryReader BinaryWriter Directory File Path Stream TextReader TextWriter Iterator<T> LinkedList<T> LinkedListNode<T> List<T> Lists LocalZone Math HttpClient HttpResponse TcpClient TcpListener Number NumberFormat NumberText PriorityQueue<E, P> Queue<T> Random Computed<T> Effect Reactive Source Records Attributes Fail MemberInfo ParameterInfo Parameters Reentrant TypeDescriber ResourceData Resources CStrings Marshal Memory NativeMemory SortedDictionary<K, V> SortedSet<T> Spans Stack<T> String<T> StringBuilder Encoding JsonReader JsonValue Match Regex RegexNode RegexParser UTF8Encoding AtomicBool AtomicI32 AtomicI64 BlockingCollection<T> ConcurrentQueue<T> Condition CountdownEvent Interlocked ManualResetEvent Mutex Parallel SemaphoreSlim Shared<T> Scheduler Task Thread ThreadPool TimeFormat TimeText Tuple<T1> Tuple<T1, T2> Tuple<T1, T2, T3> Tuple<T1, T2, T3, T4> Tuple<T1, T2, T3, T4, T5> Tuple<T1, T2, T3, T4, T5, T6> Tuple<T1, T2, T3, T4, T5, T6, T7> Tuple<T1, T2, T3, T4, T5, T6, T7, T8> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> Type Unicode

Métodos

GetType() : Type
#

The object's type at run time (its class; a boxed value's: the value's type).

static Undescribed() : Type
#

static

virtual ToString() : str
#

virtual

The object as text (the name of its class unless the class says otherwise).

virtual Hash() : u64
#

virtual

A number for the object (the same for objects its class considers equal).

virtual destroy()
#

inherited virtual

Runs once when the object dies: a class's destroy() runs, then its base's. Nothing here.

Miembros privados e internos (1)

virtual RuntimeType() : Type?
#

internal virtual

What GetType gives: each class's own (the compiler writes one per class when the program uses reflection).

Código fuente

Any en Antril, descompilado a partir de su Larva HIR.

System.Any.ant
// System.Any — System.Core (decompiled from Larva HIR)

into namespace System
{
	public class Any
	{
		internal:
			/// What GetType gives: each class's own (the compiler writes one per class when the program uses reflection).
			virtual RuntimeType() : Type? => null;

		inherited:
			/// Runs once when the object dies: a class's `destroy()` runs, then its base's. Nothing here.
			virtual destroy()
			{
			}

		public:
			/// The object's type at run time (its class; a boxed value's: the value's type).
			GetType() : Type
			{
				if (RuntimeType() is Type known)
					return known;
				return Undescribed();
			}

			[NoInline]
			static Undescribed() : Type
			{
				throw new InvalidOperationError("GetType: the program's types are not described");
			}

			/// The object as text (the name of its class unless the class says otherwise).
			virtual ToString() : str => "System.Any";

			/// A number for the object (the same for objects its class considers equal).
			virtual Hash() : u64 => 0;
	}
}
Esc