static class · System.Reflection

Attributes

static class Attributes
Tipo
static class
Espacio de nombres
System.Reflection
Ensamblado
System.Core
Acceso
internal, static, abstract
Archivo fuente
Reflection.ant

Herencia

Clases base
Any Attributes

Métodos

Of(any[] all, Type attributeType) : any[]
#

static

Those of all that are of attributeType (or a class below it).

Miembros heredados (5)

Código fuente

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

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

import System;

into namespace System.Reflection
{
	static class Attributes
	{
		public:
			/// Those of `all` that are of `attributeType` (or a class below it).
			Of(any[] all, Type attributeType) : any[]
			{
				List<any> found = new List<any>();
				{
					any[] _items1 = all;
					i32 _index2 = 0;
					loop (_index2 < _items1.Length)
					{
						any a = _items1[_index2];
						{
							if (attributeType.IsInstanceOfType(a))
								found.Add(a);
						}
						_index2++;
					}
				}
				return found.ToArray();
			}
	}
}
Esc