18 references to ToArray
System.Private.CoreLib (18)
System\Reflection\Attribute.NativeAot.cs (4)
42
return matches.Select(m => m.Instantiate()).
ToArray
();
55
return matches.Select(m => m.Instantiate()).
ToArray
();
66
return matches.Select(m => m.Instantiate()).
ToArray
();
79
return matches.Select(m => m.Instantiate()).
ToArray
();
System\Reflection\Runtime\General\Helpers.cs (1)
66
return Array.AsReadOnly(enumeration.
ToArray
());
System\Reflection\Runtime\General\LegacyCustomAttributeApis.cs (9)
31
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this).
ToArray
(); // inherit is meaningless for Assemblies
54
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit).
ToArray
();
77
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit: false).
ToArray
(); // Desktop compat: for events, this form of the api ignores "inherit"
100
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit).
ToArray
();
123
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit).
ToArray
();
146
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this).
ToArray
(); // inherit is meaningless for Modules
169
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit: false).
ToArray
(); // Desktop compat: for parameters, this form of the api ignores "inherit"
192
public sealed override object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this, inherit: false).
ToArray
(); // Desktop compat: for properties, this form of the api ignores "inherit"
215
public object[] GetCustomAttributes(bool inherit) => CustomAttributeExtensions.GetCustomAttributes(this.ToType(), inherit).
ToArray
();
System\Reflection\Runtime\General\ThunkedApis.cs (4)
24
public sealed override Type[] GetExportedTypes() => ExportedTypes.
ToArray
();
25
public sealed override Module[] GetLoadedModules(bool getResourceModules) => Modules.
ToArray
();
26
public sealed override Module[] GetModules(bool getResourceModules) => Modules.
ToArray
();
28
public sealed override Type[] GetTypes() => DefinedTypes.
ToArray
();