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