Code:
/ FX-1434 / FX-1434 / 1.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
- MetadataItemCollectionFactory.cs
- BitmapDownload.cs
- SvcMapFileLoader.cs
- CroppedBitmap.cs
- AdornerHitTestResult.cs
- AppDomainManager.cs
- BaseCollection.cs
- XmlSchemaComplexContentRestriction.cs
- CompositeDataBoundControl.cs
- TransformerConfigurationWizardBase.cs
- TemplateBamlRecordReader.cs
- XmlIncludeAttribute.cs
- AssemblyCache.cs
- IdentityValidationException.cs
- OrElse.cs
- Matrix3DConverter.cs
- Operators.cs
- NetworkAddressChange.cs
- StringPropertyBuilder.cs
- CustomTypeDescriptor.cs
- DesignerHierarchicalDataSourceView.cs
- RunClient.cs
- PeerObject.cs
- DynamicILGenerator.cs
- DateTimeSerializationSection.cs
- EntryIndex.cs
- TemplateEditingService.cs
- CultureInfoConverter.cs
- ResourceSet.cs
- DayRenderEvent.cs
- Vector3DValueSerializer.cs
- InputScopeNameConverter.cs
- XmlSchemaComplexContentExtension.cs
- StringStorage.cs
- DecimalMinMaxAggregationOperator.cs
- ProviderIncompatibleException.cs
- BordersPage.cs
- DownloadProgressEventArgs.cs
- FixedSOMPageConstructor.cs
- rsa.cs
- MouseGesture.cs
- Wildcard.cs
- Opcode.cs
- PauseStoryboard.cs
- InfoCardArgumentException.cs
- ClientBuildManagerCallback.cs
- MetabaseServerConfig.cs
- AbandonedMutexException.cs
- DataGridColumnEventArgs.cs
- ProgressBarAutomationPeer.cs
- LinearGradientBrush.cs
- SelectedGridItemChangedEvent.cs
- EncoderBestFitFallback.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SqlExpressionNullability.cs
- XmlQualifiedName.cs
- ConstraintConverter.cs
- UserControlAutomationPeer.cs
- IncrementalHitTester.cs
- AnonymousIdentificationSection.cs
- WebPartManagerInternals.cs
- MissingMemberException.cs
- MimeReflector.cs
- XmlDataSourceView.cs
- ping.cs
- ConsumerConnectionPointCollection.cs
- Rss20FeedFormatter.cs
- VirtualPathProvider.cs
- ByteViewer.cs
- KeyInfo.cs
- Zone.cs
- CatalogZoneDesigner.cs
- XmlNodeChangedEventManager.cs
- Utils.cs
- ScrollEvent.cs
- SignatureDescription.cs
- UserUseLicenseDictionaryLoader.cs
- MailWriter.cs
- VisualStyleRenderer.cs
- WebColorConverter.cs
- BitmapMetadataBlob.cs
- Int16AnimationBase.cs
- FileUtil.cs
- peersecurityelement.cs
- BitmapEffectrendercontext.cs
- CharacterMetricsDictionary.cs
- TdsParserStaticMethods.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DataObject.cs
- StylusEventArgs.cs
- DeferredTextReference.cs
- SocketAddress.cs
- DataSvcMapFile.cs
- EventPrivateKey.cs
- ModuleElement.cs
- DispatcherFrame.cs
- LinkLabelLinkClickedEvent.cs
- StreamWriter.cs
- Accessors.cs
- WindowsMenu.cs