Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / System / data / design / DesignUtil.cs / 1 / DesignUtil.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //----------------------------------------------------------------------------- namespace System.Data.Design { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Design; using System.Diagnostics; using System.Drawing; using System.Runtime.InteropServices; using System.Runtime.Serialization.Formatters; using System.Windows.Forms; using System.Windows.Forms.Design; using System.Globalization; ////// ///internal sealed class DesignUtil { /// /// Private contstructor to avoid class being instantiated. /// private DesignUtil() { } internal static IDictionary CloneDictionary( IDictionary source ) { Debug.Assert( source != null ); if( source == null ) { return null; } if( source is ICloneable ) { return (IDictionary) ((ICloneable) source).Clone(); } IDictionary clone = (IDictionary) Activator.CreateInstance( source.GetType() ); IDictionaryEnumerator e = source.GetEnumerator(); while( e.MoveNext() ) { ICloneable key = e.Key as ICloneable; ICloneable val = e.Value as ICloneable; if( (key != null) && (val != null) ) { clone.Add( key.Clone(), val.Clone() ); } } return clone; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientTargetCollection.cs
- SevenBitStream.cs
- FileNotFoundException.cs
- CssStyleCollection.cs
- StructuredTypeInfo.cs
- ColumnWidthChangingEvent.cs
- MenuCommands.cs
- ValueProviderWrapper.cs
- ErrorFormatterPage.cs
- DirectionalLight.cs
- TTSEngineTypes.cs
- OleDbDataAdapter.cs
- SecurityElement.cs
- LogPolicy.cs
- InkCollectionBehavior.cs
- ConsumerConnectionPointCollection.cs
- DbConnectionOptions.cs
- EndpointAddressMessageFilterTable.cs
- DiscreteKeyFrames.cs
- FileVersionInfo.cs
- SafeViewOfFileHandle.cs
- RegexStringValidatorAttribute.cs
- TargetConverter.cs
- OperationBehaviorAttribute.cs
- CompilerErrorCollection.cs
- ManagementEventArgs.cs
- Table.cs
- OleDbWrapper.cs
- LayoutUtils.cs
- PropertyPathWorker.cs
- ApplicationServiceHelper.cs
- WindowsTooltip.cs
- URLMembershipCondition.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CultureInfoConverter.cs
- XmlSchemaSimpleContentExtension.cs
- RecommendedAsConfigurableAttribute.cs
- XsdDateTime.cs
- GlobalProxySelection.cs
- AppDomain.cs
- TraceSource.cs
- MembershipUser.cs
- RotateTransform.cs
- TableLayout.cs
- EdmSchemaAttribute.cs
- ToggleProviderWrapper.cs
- ContextStack.cs
- AssemblyCacheEntry.cs
- StreamAsIStream.cs
- IpcServerChannel.cs
- HScrollBar.cs
- WebPartConnectVerb.cs
- TimeSpanValidatorAttribute.cs
- StreamResourceInfo.cs
- Stream.cs
- ThemeDirectoryCompiler.cs
- BamlRecordHelper.cs
- EventLogger.cs
- ReaderContextStackData.cs
- SoapObjectWriter.cs
- BufferedResponseStream.cs
- DetailsViewDeleteEventArgs.cs
- DSACryptoServiceProvider.cs
- TransformGroup.cs
- ServiceReflector.cs
- FontStretch.cs
- EntryPointNotFoundException.cs
- RowBinding.cs
- DbModificationClause.cs
- ByteFacetDescriptionElement.cs
- ToolStripHighContrastRenderer.cs
- ResourceDescriptionAttribute.cs
- PictureBox.cs
- GridItem.cs
- SqlGatherProducedAliases.cs
- DecoderExceptionFallback.cs
- SerialPort.cs
- ReflectionTypeLoadException.cs
- PeerContact.cs
- CombinedGeometry.cs
- MemberAccessException.cs
- ToolStripLocationCancelEventArgs.cs
- WmlLabelAdapter.cs
- InputScopeNameConverter.cs
- _NegotiateClient.cs
- SchemaCollectionCompiler.cs
- JoinTreeSlot.cs
- MouseGesture.cs
- RenderingBiasValidation.cs
- ResourceProviderFactory.cs
- RegexGroupCollection.cs
- documentsequencetextcontainer.cs
- SHA512.cs
- HeaderUtility.cs
- AssociationSet.cs
- QueuePathDialog.cs
- FtpWebRequest.cs
- TextContainerChangedEventArgs.cs
- SortableBindingList.cs
- SecUtil.cs