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
- RegistryKey.cs
- XmlAnyElementAttribute.cs
- DrawingVisual.cs
- TargetException.cs
- ResourceManager.cs
- StrongNameUtility.cs
- TraceShell.cs
- DbConnectionFactory.cs
- MimeMultiPart.cs
- ListDataHelper.cs
- CqlWriter.cs
- IisTraceListener.cs
- ListenerElementsCollection.cs
- StreamedFramingRequestChannel.cs
- BaseComponentEditor.cs
- WindowsMenu.cs
- XomlCompilerParameters.cs
- ItemDragEvent.cs
- EntityContainerRelationshipSetEnd.cs
- PenThread.cs
- DataSourceCache.cs
- TextureBrush.cs
- __Filters.cs
- COM2ExtendedBrowsingHandler.cs
- Ops.cs
- HuffModule.cs
- Scripts.cs
- HttpHandlerActionCollection.cs
- CodeDomLocalizationProvider.cs
- BitVector32.cs
- UnsafeNativeMethods.cs
- TypeSystemHelpers.cs
- HttpCapabilitiesBase.cs
- PackageFilter.cs
- AbandonedMutexException.cs
- FragmentQueryKB.cs
- UnmanagedMemoryStream.cs
- WindowInteractionStateTracker.cs
- Win32Native.cs
- MarkupProperty.cs
- OptimizedTemplateContentHelper.cs
- DecodeHelper.cs
- QueryOutputWriter.cs
- PathTooLongException.cs
- ProgressChangedEventArgs.cs
- Command.cs
- NavigateUrlConverter.cs
- SqlMultiplexer.cs
- TraceListeners.cs
- ProfilePropertyNameValidator.cs
- MenuStrip.cs
- ConsoleCancelEventArgs.cs
- IPAddress.cs
- ToolStripDropDownClosingEventArgs.cs
- TaskExtensions.cs
- EntityCommand.cs
- GlyphingCache.cs
- ArithmeticException.cs
- XmlSchemaValidationException.cs
- RijndaelCryptoServiceProvider.cs
- TempFiles.cs
- X509CertificateClaimSet.cs
- SpeechSynthesizer.cs
- Simplifier.cs
- NetCodeGroup.cs
- AppSettingsExpressionBuilder.cs
- OleStrCAMarshaler.cs
- MultipartIdentifier.cs
- PersistenceTypeAttribute.cs
- StatusBarPanelClickEvent.cs
- SecurityTokenTypes.cs
- SByte.cs
- ComponentCollection.cs
- StateDesigner.TransitionInfo.cs
- ModelPropertyCollectionImpl.cs
- TextRunCacheImp.cs
- ObservableCollection.cs
- DetailsViewPageEventArgs.cs
- WebBrowserPermission.cs
- StreamWithDictionary.cs
- XPathBuilder.cs
- LeafCellTreeNode.cs
- FixedPage.cs
- _Connection.cs
- DbBuffer.cs
- IssuedTokensHeader.cs
- StorageRoot.cs
- DataGridViewComboBoxColumnDesigner.cs
- SystemDiagnosticsSection.cs
- InheritanceContextChangedEventManager.cs
- XamlStream.cs
- UnionCodeGroup.cs
- CodeComment.cs
- ActiveXHost.cs
- Zone.cs
- RowTypeElement.cs
- IncrementalHitTester.cs
- ChangesetResponse.cs
- Array.cs
- Win32NamedPipes.cs