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
- TextFormatterHost.cs
- DesignerAttributeInfo.cs
- WorkItem.cs
- PositiveTimeSpanValidatorAttribute.cs
- HiddenFieldPageStatePersister.cs
- FileDialogCustomPlacesCollection.cs
- MemoryPressure.cs
- ReferenceService.cs
- Header.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridViewTextBoxCell.cs
- WebColorConverter.cs
- XmlText.cs
- InternalConfigSettingsFactory.cs
- Attributes.cs
- QueueException.cs
- TranslateTransform.cs
- StringOutput.cs
- SystemGatewayIPAddressInformation.cs
- AutomationPatternInfo.cs
- WebDescriptionAttribute.cs
- ProxyAssemblyNotLoadedException.cs
- QueryOptionExpression.cs
- BufferedGraphicsManager.cs
- XmlComment.cs
- TempFiles.cs
- HybridDictionary.cs
- BinHexDecoder.cs
- ELinqQueryState.cs
- SimpleApplicationHost.cs
- TraceLevelStore.cs
- Crc32.cs
- CustomErrorsSectionWrapper.cs
- IUnknownConstantAttribute.cs
- ToolStripOverflow.cs
- WebPartMenuStyle.cs
- XmlSchemaIdentityConstraint.cs
- WebPartCatalogAddVerb.cs
- MenuItem.cs
- EntityParameter.cs
- AffineTransform3D.cs
- TrackingServices.cs
- PixelFormat.cs
- IListConverters.cs
- CommonDialog.cs
- AuthenticationModuleElementCollection.cs
- ExpressionBindingCollection.cs
- SchemaAttDef.cs
- QilInvokeLateBound.cs
- NativeMethods.cs
- ObjectDataSourceView.cs
- FixedSOMTextRun.cs
- ResXResourceReader.cs
- Semaphore.cs
- SmtpReplyReader.cs
- CheckPair.cs
- Span.cs
- ISCIIEncoding.cs
- EntityDataSourceChangedEventArgs.cs
- LogWriteRestartAreaAsyncResult.cs
- TypeLoader.cs
- CompoundFileIOPermission.cs
- DoubleKeyFrameCollection.cs
- Hex.cs
- EventLogPermissionAttribute.cs
- ListViewCommandEventArgs.cs
- MatrixIndependentAnimationStorage.cs
- SetStateDesigner.cs
- ParameterCollection.cs
- ConfigurationLockCollection.cs
- LookupBindingPropertiesAttribute.cs
- DataGridViewHitTestInfo.cs
- SourceItem.cs
- QilPatternFactory.cs
- ComponentManagerBroker.cs
- SynchronizationContext.cs
- SqlBulkCopyColumnMapping.cs
- CanonicalFontFamilyReference.cs
- ToolStripDropDownMenu.cs
- GacUtil.cs
- SmtpFailedRecipientsException.cs
- SourceFileBuildProvider.cs
- HttpCookieCollection.cs
- returneventsaver.cs
- WebPartDescription.cs
- OlePropertyStructs.cs
- HMACSHA1.cs
- TextEditorSpelling.cs
- RectValueSerializer.cs
- ObjectConverter.cs
- RelationshipSet.cs
- AttachedPropertyDescriptor.cs
- Int64AnimationBase.cs
- PlatformCulture.cs
- IntSecurity.cs
- DbReferenceCollection.cs
- ValidationError.cs
- TableRowsCollectionEditor.cs
- unsafenativemethodsother.cs
- DotExpr.cs