132 implementations of Clone
dotnet-svcutil-lib (6)
CmdCredentialsProvider.cs (1)
238public object Clone()
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
869object ICloneable.Clone()
FrameworkFork\Microsoft.Xml\Xml\HWStack.cs (1)
120public object Clone()
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (1)
181object ICloneable.Clone()
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (1)
432object ICloneable.Clone()
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNodeIterator.cs (1)
20object ICloneable.Clone() { return this.Clone(); }
GenerateDocumentationAndConfigFiles (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Metrics (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Metrics.Legacy (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.Build (1)
SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.Analyzers (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.Collections.Package (1)
Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\Collections\Enumerator.cs (1)
49public object Clone()
CodeModel\Collections\ExternalNamespaceEnumerator.cs (1)
50public object Clone()
PresentationFramework (1)
System\Windows\Documents\Table.cs (1)
419public Object Clone()
Roslyn.Diagnostics.Analyzers (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
System.Collections.NonGeneric (6)
System\Collections\Queue.cs (2)
81public virtual object Clone() 437public object Clone() => MemberwiseClone();
System\Collections\SortedList.cs (2)
294public virtual object Clone() 812public object Clone() => MemberwiseClone();
System\Collections\Stack.cs (2)
85public virtual object Clone() 336public object Clone() => MemberwiseClone();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\MaskedTextProvider.cs (1)
457public object Clone()
System.Configuration.ConfigurationManager (3)
System\Configuration\ConfigurationFileMap.cs (1)
49public virtual object Clone()
System\Configuration\SettingsPropertyCollection.cs (1)
70public object Clone()
System\Configuration\SettingsPropertyValueCollection.cs (1)
89public object Clone()
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
24public object Clone()
System\Data\Common\DataColumnMapping.cs (1)
65object ICloneable.Clone()
System\Data\Common\DataTableMapping.cs (1)
97object ICloneable.Clone()
System\Data\Common\DbDataAdapter.cs (1)
234object ICloneable.Clone()
System\Data\PropertyCollection.cs (1)
28public override object Clone()
System.Data.Odbc (5)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
24public object Clone()
System\Data\Odbc\OdbcCommand.cs (1)
463object ICloneable.Clone()
System\Data\Odbc\OdbcConnection.cs (1)
320object ICloneable.Clone()
System\Data\Odbc\OdbcDataAdapter.cs (1)
138object ICloneable.Clone()
System\Data\Odbc\OdbcParameter.cs (1)
582object ICloneable.Clone()
System.Data.OleDb (4)
artifacts\obj\System.Data.OleDb\Debug\net11.0\System.Data.OleDb.notsupported.cs (4)
61object System.ICloneable.Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 132object System.ICloneable.Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 196object System.ICloneable.Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } 403object System.ICloneable.Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
System.Drawing.Common (12)
System\Drawing\Brush.cs (1)
13public abstract object Clone();
System\Drawing\Drawing2D\CustomLineCap.cs (1)
89public object Clone() => CoreClone();
System\Drawing\Drawing2D\GraphicsPath.cs (1)
93public object Clone()
System\Drawing\Font.cs (1)
675public object Clone()
System\Drawing\Icon.cs (1)
236public object Clone() => new Icon(this, Size.Width, Size.Height);
System\Drawing\Image.cs (1)
197public object Clone()
System\Drawing\Imaging\ImageAttributes.cs (1)
89public object Clone()
System\Drawing\Pen.cs (1)
88public object Clone()
System\Drawing\Printing\Margins.cs (1)
176public object Clone() => MemberwiseClone();
System\Drawing\Printing\PageSettings.cs (1)
214public object Clone()
System\Drawing\Printing\PrinterSettings.cs (1)
433public object Clone()
System\Drawing\StringFormat.cs (1)
99public object Clone() => new StringFormat(this);
System.Management (6)
artifacts\obj\System.Management\Debug\net11.0\System.Management.notsupported.cs (6)
149public virtual object Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } 292public override object Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } 387public abstract object Clone(); 410object System.ICloneable.Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); } 418public abstract object Clone(); 433object System.ICloneable.Clone() { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemManagement); }
System.Net.Http (20)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (1)
291object ICloneable.Clone()
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
590object ICloneable.Clone()
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
179object ICloneable.Clone()
System\Net\Http\Headers\ContentRangeHeaderValue.cs (1)
368object ICloneable.Clone()
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
140object ICloneable.Clone() => ReferenceEquals(this, Any) ? Any : new EntityTagHeaderValue(this);
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
289object ICloneable.Clone()
System\Net\Http\Headers\MediaTypeWithQualityHeaderValue.cs (1)
40object ICloneable.Clone()
System\Net\Http\Headers\NameValueHeaderValue.cs (1)
389object ICloneable.Clone()
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (1)
149object ICloneable.Clone()
System\Net\Http\Headers\ProductHeaderValue.cs (1)
153object ICloneable.Clone()
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
164object ICloneable.Clone()
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
138object ICloneable.Clone()
System\Net\Http\Headers\RangeHeaderValue.cs (1)
177object ICloneable.Clone()
System\Net\Http\Headers\RangeItemHeaderValue.cs (1)
211object ICloneable.Clone()
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
146object ICloneable.Clone()
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
180object ICloneable.Clone()
System\Net\Http\Headers\TransferCodingHeaderValue.cs (1)
140object ICloneable.Clone()
System\Net\Http\Headers\TransferCodingWithQualityHeaderValue.cs (1)
39object ICloneable.Clone()
System\Net\Http\Headers\ViaHeaderValue.cs (1)
251object ICloneable.Clone()
System\Net\Http\Headers\WarningHeaderValue.cs (1)
280object ICloneable.Clone()
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1078public object Clone()
src\libraries\System.Private.CoreLib\src\System\Array.Enumerators.cs (1)
23public object Clone()
src\libraries\System.Private.CoreLib\src\System\CharEnumerator.cs (1)
17public object Clone() => MemberwiseClone();
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
225public virtual object Clone() 1095public object Clone() 2121public object Clone() => MemberwiseClone(); 2567public object Clone() => MemberwiseClone();
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
913public object Clone() => new BitArray(this); 976public object Clone() => MemberwiseClone();
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
446public virtual object Clone() 1417public object Clone() => MemberwiseClone();
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
14public virtual object Clone() => MemberwiseClone();
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
54public virtual object Clone()
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
873public virtual object Clone()
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
330public object Clone()
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
232public object Clone()
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
76public object Clone()
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (1)
84public object Clone() => new OperatingSystem(_platform, _version, _servicePack);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
152public object Clone()
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
35public object Clone() => this;
src\libraries\System.Private.CoreLib\src\System\String.cs (1)
390public object Clone()
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
499public virtual object Clone()
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
94public object Clone()
System.Private.Xml (5)
System\Xml\Dom\XmlNode.cs (1)
883object ICloneable.Clone()
System\Xml\HWStack.cs (1)
119public object Clone()
System\Xml\Schema\XmlAtomicValue.cs (1)
191object ICloneable.Clone()
System\Xml\XPath\XPathNavigator.cs (1)
380object ICloneable.Clone()
System\Xml\XPath\XPathNodeIterator.cs (1)
14object ICloneable.Clone() { return this.Clone(); }
System.ServiceModel.Primitives (1)
System\IdentityModel\Policy\UnconditionalPolicy.cs (1)
176object ICloneable.Clone() => Clone();
System.Windows.Forms (11)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
466public object Clone()
System\Windows\Forms\Control.ControlCollection.cs (1)
155object ICloneable.Clone()
System\Windows\Forms\Controls\DataGridView\DataGridViewAdvancedBorderStyle.cs (1)
297object ICloneable.Clone()
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
704public virtual object Clone()
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
930public virtual object Clone()
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
668object ICloneable.Clone() => Clone();
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
428public object Clone()
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
884public virtual object Clone()
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.ToolStripPanelCellToControlEnumerator.cs (1)
34public object Clone()
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1341public virtual object Clone()
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
213object ICloneable.Clone() => new DockPaddingEdges(Left, Right, Top, Bottom);
Test.Utilities (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
Text.Analyzers (1)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
144public object Clone()
34 references to Clone
dotnet-svcutil-lib (6)
Metadata\MetadataDocumentLoader.cs (6)
235_httpCredentialsProvider?.Clone() as IHttpCredentialsProvider, 236_clientCertificatesProvider?.Clone() as IClientCertificateProvider, 237_serverCertificateValidationProvider?.Clone() as IServerCertificateValidationProvider); 567_httpCredentialsProvider?.Clone() as IHttpCredentialsProvider, 568_clientCertificatesProvider?.Clone() as IClientCertificateProvider, 569_serverCertificateValidationProvider?.Clone() as IServerCertificateValidationProvider);
System.Data.Common (6)
System\Data\Common\DataAdapter.cs (1)
228parameters.Add((parameter is ICloneable) ? ((ICloneable)parameter).Clone() : parameter);
System\Data\Common\DataColumnMappingCollection.cs (1)
168AddWithoutEvents(value.Clone() as DataColumnMapping);
System\Data\Common\DataTableMapping.cs (1)
108parameters.Add(parameter.Clone());
System\Data\Common\DataTableMappingCollection.cs (1)
124AddWithoutEvents(value.Clone() as DataTableMapping);
System\Data\Common\DbDataAdapter.cs (1)
254return (IDbCommand?)((command is ICloneable) ? ((ICloneable)command).Clone() : null);
System\Data\RecordManager.cs (1)
236dstColumn[newRecord] = cloneableObject.Clone();
System.Data.Odbc (2)
System\Data\Odbc\OdbcCommand.cs (1)
478parameters.Add(parameter.Clone());
System\Data\Odbc\OdbcParameterHelper.cs (1)
34_value = cloneable.Clone();
System.Net.Http (1)
System\Net\Http\Headers\HttpHeaders.cs (1)
729AddParsedValue(destinationInfo, cloneableValue.Clone());
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (1)
1098clone._en = (IEnumerator)((ICloneable)_en).Clone();
System.ServiceModel.Primitives (1)
System\IdentityModel\SecurityUtils.cs (1)
271ret.Add((IAuthorizationPolicy)cloneable.Clone());
System.Windows.Forms (2)
System\Windows\Forms\ComponentModel\COM2Interop\Com2TypeInfoProcessor.CachedProperties.cs (1)
33? (Com2PropertyDescriptor)cloneable.Clone()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
129clonedValue = clone.Clone();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
167return cloneable.Clone();
System.Windows.Forms.Tests (14)
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
1356var collection = Assert.IsType<Control.ControlCollection>(iCloneable.Clone());
System\Windows\Forms\DataGridViewCellStyleTests.cs (2)
792DataGridViewCellStyle style = Assert.IsType<DataGridViewCellStyle>(source.Clone()); 817DataGridViewCellStyle style = Assert.IsType<DataGridViewCellStyle>(source.Clone());
System\Windows\Forms\DockPaddingEdgesTests.cs (11)
67ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 110ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 153ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 196ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 239ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 262return Assert.IsType<ScrollableControl.DockPaddingEdges>(cloneable.Clone()); 321ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 334ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone(); 350ICloneable original2 = (ICloneable)original1.Clone(); 351ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original2.Clone(); 378ScrollableControl.DockPaddingEdges padding = (ScrollableControl.DockPaddingEdges)original.Clone();