static class · System.Reflection
Attributes
static class Attributes
- Kind
- static class
- Namespace
- System.Reflection
- Assembly
- System.Core
- Access
- internal, static, abstract
- Source file
Reflection.ant
Inheritance
- Base classes
-
AnyAttributes
Methods
Those of all that are of attributeType (or a class below it).
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
Attributes as Antril, decompiled from its Larva HIR.
// 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();
}
}
}