18 references to CloneArray
System.Reflection.MetadataLoadContext (18)
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (1)
18
public sealed override Module[] GetModules(bool getResourceModules) => ComputeRoModules(getResourceModules).
CloneArray
<Module>();
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
65
public sealed override ParameterInfo[] GetParameters() => GetParametersNoCopy().
CloneArray
<ParameterInfo>();
System\Reflection\TypeLoading\General\AssemblyNameData.cs (2)
45
an.SetPublicKey(PublicKey.
CloneArray
());
46
an.SetPublicKeyToken(PublicKeyToken.
CloneArray
());
System\Reflection\TypeLoading\General\Helpers.cs (1)
363
byte[]? pkt = assemblyName.GetPublicKeyToken().
CloneArray
();
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
85
an.SetPublicKeyToken(PublicKeyToken.
CloneArray
());
System\Reflection\TypeLoading\Methods\RoMethod.cs (2)
89
public sealed override ParameterInfo[] GetParameters() => GetParametersNoCopy().
CloneArray
<ParameterInfo>();
102
public sealed override Type[] GetGenericArguments() => GetGenericArgumentsOrParametersNoCopy().
CloneArray
<Type>();
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
130
public sealed override ParameterInfo[] GetIndexParameters() => (_lazyIndexedParameters ??= ComputeIndexParameters()).
CloneArray
<ParameterInfo>();
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (1)
55
public sealed override Type[] GetGenericParameterConstraints() => GetGenericParameterConstraintsNoCopy().
CloneArray
<Type>();
System\Reflection\TypeLoading\Types\RoModifiedFunctionPointerType.cs (2)
43
public override Type[] GetFunctionPointerParameterTypes() => Helpers.
CloneArray
(_parameterTypes);
44
public override Type[] GetFunctionPointerCallingConventions() => Helpers.
CloneArray
(_callingConventions);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (2)
90
return Helpers.
CloneArray
(_requiredModifiers);
108
return Helpers.
CloneArray
(_optionalModifiers);
System\Reflection\TypeLoading\Types\RoType.cs (4)
79
public sealed override Type[] GenericTypeParameters => GetGenericTypeParametersNoCopy().
CloneArray
<Type>();
91
public sealed override Type[] GenericTypeArguments => GetGenericTypeArgumentsNoCopy().
CloneArray
<Type>();
103
public override Type[] GetGenericArguments() => GetGenericArgumentsNoCopy().
CloneArray
();
195
public sealed override Type[] GetInterfaces() => GetInterfacesNoCopy().
CloneArray
<Type>();