Implemented interface member:
method
Clone
System.ICloneable.Clone()
164 references to Clone
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
372byte[] newTemplate = (byte[])existingTemplate.Clone();
Microsoft.AspNetCore.DataProtection.Tests (3)
Cng\CbcAuthenticatedEncryptorTests.cs (1)
59byte[] invalidCiphertext_manipulated = (byte[])validCiphertext.Clone();
Cng\GcmAuthenticatedEncryptorTests.cs (1)
53byte[] invalidCiphertext_manipulated = (byte[])validCiphertext.Clone();
Managed\ManagedAuthenticatedEncryptorTests.cs (1)
54byte[] invalidCiphertext_manipulated = (byte[])validCiphertext.Clone();
Microsoft.AspNetCore.Routing (3)
DefaultEndpointDataSource.cs (1)
27_endpoints = (Endpoint[])endpoints.Clone();
Patterns\RoutePatternFactory.cs (2)
713return SegmentCore((RoutePatternPart[])parts.Clone()); 909parameterPolicies: (RoutePatternParameterPolicyReference[])parameterPolicies.Clone());
Microsoft.AspNetCore.Server.HttpSys (1)
TimeoutManager.cs (1)
191var newTimeouts = (int[])_timeouts.Clone();
Microsoft.Build.Framework (2)
SegmentedArray`1.cs (2)
147var items = (T[][])_items.Clone(); 150items[i] = (T[])items[i].Clone();
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
3037loadModeResolvedFiles = (ITaskItem[])t.ResolvedFiles.Clone();
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (1)
131arguments = DirectCast(arguments.Clone, Object())
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (2)
246m_FieldWidthsCopy = DirectCast(value.Clone(), Integer()) 272m_DelimitersCopy = DirectCast(value.Clone(), String())
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
4443return (string[])_defaultAssemblies.Clone(); 4451return (NamespaceMapEntry[])_defaultNamespaceMapTable.Clone();
PresentationCore (27)
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (1)
274return (int[])_data.Clone();
System\Windows\Input\Stylus\Common\StylusPoint.cs (1)
685_additionalValues = (int[])_additionalValues?.Clone();
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
180_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
System\Windows\Media\Color.cs (1)
386return (float[])nativeColorValue.Clone();
System\Windows\Media\FormattedText.cs (1)
1333return (_maxTextWidths == null) ? null : (double [])_maxTextWidths.Clone();
System\Windows\Media\Imaging\BitmapMetadataBlob.cs (1)
49return (byte[]) _blob.Clone();
System\Windows\Media\PixelFormat.cs (1)
80return _mask != null ? new PartialList<byte>((byte[])_mask.Clone()) : null;
PresentationFramework (14)
Microsoft\Win32\CommonItemDialog.cs (1)
508return (string[])_itemNames.Clone();
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
240return (XmlQualifiedName[])LocatorPartTypeNames.Clone();
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
256return (XmlQualifiedName[])LocatorPartTypeNames.Clone();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
376return (XmlQualifiedName[])LocatorPartTypeNames.Clone();
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
307return (XmlQualifiedName[])LocatorPartTypeNames.Clone();
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
195return (XmlQualifiedName[])LocatorPartTypeNames.Clone();
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
182return (XmlQualifiedName[])LocatorPartTypeNames.Clone();
MS\Internal\IO\Packaging\PackageFilter.cs (1)
615string[] path = (string[]) pathWithGaps.Clone();
System\Windows\Interop\DynamicScriptObject.cs (1)
328args = (object[])args.Clone();
System\Windows\Markup\XamlTypeMapper.cs (4)
295XamlTypeMapper newMapper = new XamlTypeMapper(_assemblyNames.Clone() as string[]); 302newMapper._namespaceMaps = _namespaceMaps.Clone() as NamespaceMapEntry[]; 4443return (string[])_defaultAssemblies.Clone(); 4451return (NamespaceMapEntry[])_defaultNamespaceMapTable.Clone();
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
179_sortedResolvedKeyFrames = (ResolvedKeyFrameEntry[])sourceAnimation._sortedResolvedKeyFrames.Clone();
ReachFramework (1)
MS\Internal\Printing\Configuration\DevMode.cs (1)
399result._byteData = (byte[])this._byteData.Clone();
System.Collections.Immutable (1)
System\Linq\ImmutableArrayExtensions.cs (1)
626return (T[])immutableArray.array.Clone();
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (1)
226_providers = (providers != null) ? Array.AsReadOnly((ExportProvider[])providers.Clone()) : EmptyProviders;
System.ComponentModel.TypeConverter (7)
System\ComponentModel\Design\PropertyTabAttribute.cs (4)
140protected string[]? TabClassNames => (string[]?)_tabClassNames?.Clone(); 200_tabClasses = (Type[])tabClasses.Clone(); 208_tabClassNames = (string[])tabClassNames.Clone(); 225TabScopes = (PropertyTabScope[])tabScopes.Clone();
System\ComponentModel\EventDescriptorCollection.cs (1)
59_namedSort = (string[])namedSort.Clone();
System\ComponentModel\PropertyDescriptorCollection.cs (2)
65_namedSort = (string[])namedSort.Clone(); 532return (ICollection)_properties.Clone();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
732string[] clone = (string[])Items.Clone();
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
35curTypeInfo.DelegateType = MakeNewDelegate((Type[])types.Clone());
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\PhysicalAddress.cs (1)
73return (byte[])_address.Clone();
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
241SendPacketsElement[] elements = (SendPacketsElement[])_sendPacketsElements.Clone();
System.Private.CoreLib (50)
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (2)
19_publicKeyToken = (byte[])publicKeyToken.Clone(); 34public byte[] PublicKeyToken => (byte[])_publicKeyToken.Clone();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
160_buckets = (int[])source._buckets.Clone(); 161_entries = (Entry[])source._entries!.Clone();
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (6)
38MethodBase?[] candidates = (MethodBase[])match.Clone(); 303state = new BinderState((int[])paramOrder[0].Clone(), args.Length, paramArrayTypes[0] != null); 394state = new BinderState((int[])paramOrder[currentMin].Clone(), args.Length, paramArrayTypes[currentMin] != null); 462FieldInfo[] candidates = (FieldInfo[])match.Clone(); 558MethodBase[] candidates = (MethodBase[])match.Clone(); 648PropertyInfo[] candidates = (PropertyInfo[])match.Clone();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventTypes.cs (1)
208return (TraceLoggingTypeInfo[])typeInfos.Clone();
src\libraries\System.Private.CoreLib\src\System\Environment.cs (1)
96(string[])s_commandLineArgs.Clone() :
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
65saLeapYearMonthNames = (string[])saMonthNames.Clone();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (9)
1050get => (string[])InternalGetAbbreviatedDayOfWeekNames().Clone(); 1075get => (string[])InternalGetSuperShortDayNames().Clone(); 1095get => (string[])InternalGetDayOfWeekNames().Clone(); 1117get => (string[])InternalGetAbbreviatedMonthNames().Clone(); 1138get => (string[])InternalGetMonthNames().Clone(); 1413return (string[])patterns.Clone(); 1432newPatterns = (string[])patterns.Clone(); 1683get => (string[])InternalGetGenitiveMonthNames(true).Clone(); 1704get => (string[])InternalGetGenitiveMonthNames(false).Clone();
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (7)
305get => (int[])_currencyGroupSizes.Clone(); 312int[] inputSizes = (int[])value.Clone(); 320get => (int[])_numberGroupSizes.Clone(); 327int[] inputSizes = (int[])value.Clone(); 335get => (int[])_percentGroupSizes.Clone(); 341int[] inputSizes = (int[])value.Clone(); 763get => (string[])_nativeDigits.Clone();
src\libraries\System.Private.CoreLib\src\System\Globalization\SortKey.cs (1)
39public byte[] KeyData => (byte[])_keyData.Clone();
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (2)
154_publicKey = (byte[]?)_publicKey?.Clone(), 155_publicKeyToken = (byte[]?)_publicKeyToken?.Clone(),
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedFunctionPointerType.cs (1)
37return (Type[])(_parameterTypes ?? Initialize()).Clone();
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedGenericType.cs (1)
21return (Type[])(_genericArguments ?? Initialize()).Clone();
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (2)
17typeArguments = (Type[])(typeArguments.Clone()); 57public sealed override Type[] GenericTypeArguments => (Type[])(_genericTypeArguments.Clone());
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
1082adjustmentRules = (AdjustmentRule[])adjustmentRules.Clone();
src\System\Exception.CoreCLR.cs (2)
150byte[]? stackTraceCopy = (byte[]?)dispatchState.StackTrace?.Clone(); 151object[]? dynamicMethodsCopy = (object[]?)dispatchState.DynamicMethods?.Clone();
src\System\Reflection\Emit\DynamicILGenerator.cs (3)
898m_code = (code != null) ? (byte[])code.Clone() : Array.Empty<byte>(); 915m_exceptions = (exceptions != null) ? (byte[])exceptions.Clone() : Array.Empty<byte>(); 931m_localSignature = (localSignature != null) ? (byte[])localSignature.Clone() : Array.Empty<byte>();
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
114instantiation = (RuntimeTypeHandle[]?)instantiation?.Clone();
src\System\RuntimeHandles.cs (6)
1309typeInstantiationContext = (RuntimeTypeHandle[]?)typeInstantiationContext.Clone(); 1314methodInstantiationContext = (RuntimeTypeHandle[]?)methodInstantiationContext.Clone(); 1357typeInstantiationContext = (RuntimeTypeHandle[]?)typeInstantiationContext?.Clone(); 1358methodInstantiationContext = (RuntimeTypeHandle[]?)methodInstantiationContext?.Clone(); 1415typeInstantiationContext = (RuntimeTypeHandle[]?)typeInstantiationContext.Clone(); 1420methodInstantiationContext = (RuntimeTypeHandle[]?)methodInstantiationContext.Clone();
src\System\RuntimeType.CoreCLR.cs (1)
3595return Reflection.Emit.TypeBuilderInstantiation.MakeGenericType(this, (Type[])(instantiation.Clone()));
System.Private.Xml (4)
System\Xml\HWStack.cs (1)
121return new HWStack((object[])_stack.Clone(), _growthRate, _used, _size);
System\Xml\Schema\BitSet.cs (1)
200return new BitSet(_count, (uint[])_bits.Clone());
System\Xml\XPath\Internal\XPathMultyIterator.cs (1)
113this.arr = (ResettableIterator[])it.arr.Clone();
System\Xml\Xsl\QIL\QilList.cs (1)
81n._members = (QilNode[])_members.Clone();
System.Reflection.Context (1)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
100return (ParameterInfo[])GetIndexParametersNoCopy().Clone();
System.Reflection.Metadata (2)
System\Reflection\Metadata\Internal\BlobHeap.cs (2)
170result = (byte[])result.Clone(); 177result = (byte[])result.Clone();
System.Reflection.MetadataLoadContext (2)
System\Reflection\DefaultBinder.cs (2)
65MethodBase[] candidates = (MethodBase[])match.Clone(); 163PropertyInfo[] candidates = (PropertyInfo[])match.Clone();
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\ObjectManager.cs (1)
700arrayIndex = (int[])arrayIndex.Clone();
System.Security.Claims (3)
System\Security\Claims\Claim.cs (1)
305_userSerializationData = other._userSerializationData.Clone() as byte[];
System\Security\Claims\ClaimsIdentity.cs (1)
229_userSerializationData = other._userSerializationData.Clone() as byte[];
System\Security\Claims\GenericPrincipal.cs (1)
22m_roles = (string[])roles.Clone();
System.Security.Cryptography (13)
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (1)
52_ => (byte[])src.Clone(),
src\libraries\Common\src\System\Security\Cryptography\KeySizeHelpers.cs (1)
14return (KeySizes[])(src.Clone());
System\Security\Cryptography\AsymmetricAlgorithm.cs (1)
46return (KeySizes[])LegalKeySizesValue!.Clone();
System\Security\Cryptography\ECDiffieHellmanPublicKey.cs (2)
23_keyBlob = (byte[])keyBlob.Clone(); 36return (byte[])_keyBlob.Clone();
System\Security\Cryptography\HashAlgorithm.cs (2)
40return (byte[]?)HashValue?.Clone(); 159byte[] tmp = (byte[])HashValue.Clone();
System\Security\Cryptography\PasswordDeriveBytes.cs (2)
101return (byte[]?)_salt?.Clone(); 108_salt = (byte[]?)value?.Clone();
System\Security\Cryptography\RSAOAEPKeyExchangeFormatter.cs (2)
26return (byte[])ParameterValue.Clone(); 35ParameterValue = (byte[])value.Clone();
System\Security\Cryptography\SymmetricAlgorithm.cs (2)
127return (KeySizes[])LegalBlockSizesValue!.Clone(); 136return (KeySizes[])LegalKeySizesValue!.Clone();
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
830public Registers Clone() => new Registers((int[])CaptureStarts.Clone(), (int[])CaptureEnds.Clone());
System.Threading.Tasks.Dataflow (1)
Internal\ImmutableArray.cs (1)
90public T[] ToArray() { return _array.Length == 0 ? s_empty._array : (T[])_array.Clone(); }
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
394? (byte[])encoded.Clone()
UIAutomationClient (6)
MS\Internal\Automation\EventListener.cs (1)
35_properties = (AutomationProperty[])properties.Clone();
MS\Internal\Automation\WinEventWrap.cs (1)
38_eventIds = (int [])eventIds.Clone();
System\Windows\Automation\AndCondition.cs (2)
47_conditions = (Condition [ ]) conditions.Clone(); 73return (Condition []) _conditions.Clone();
System\Windows\Automation\OrCondition.cs (2)
46_conditions = (Condition[])conditions.Clone(); 73return (Condition []) _conditions.Clone();
UIAutomationTypes (7)
System\Windows\Automation\ControlType.cs (3)
102clone[i] = (AutomationPattern[])this._requiredPatternsSets[i].Clone(); 114return (AutomationPattern[])_neverSupportedPatterns.Clone(); 123return (AutomationProperty[])_requiredProperties.Clone();
System\Windows\Automation\StructureChangedEventArgs.cs (2)
81_runtimeID = (int [])runtimeId.Clone(); 101return (int [])_runtimeID.Clone();
System\Windows\Automation\WindowClosedEventArgs.cs (2)
37_runtimeId = (int[])runtimeId.Clone(); 56return (int [])_runtimeId.Clone();