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
- HeaderedContentControl.cs
- SapiRecoInterop.cs
- HtmlGenericControl.cs
- MessageEncodingBindingElementImporter.cs
- FormViewUpdateEventArgs.cs
- HttpCookie.cs
- SectionRecord.cs
- StateWorkerRequest.cs
- MethodAccessException.cs
- XmlDataSourceNodeDescriptor.cs
- SignatureConfirmations.cs
- ADRole.cs
- ViewGenerator.cs
- EndpointAddressAugust2004.cs
- MemoryMappedViewStream.cs
- ConnectionOrientedTransportManager.cs
- LoadItemsEventArgs.cs
- SecureStringHasher.cs
- ListControl.cs
- SecureEnvironment.cs
- dbdatarecord.cs
- BaseParagraph.cs
- GlobalizationSection.cs
- CreateParams.cs
- DataGridViewDataErrorEventArgs.cs
- FindCriteria11.cs
- BrushValueSerializer.cs
- FileChangesMonitor.cs
- Rectangle.cs
- TaskFormBase.cs
- TreeIterators.cs
- Drawing.cs
- XamlFrame.cs
- XamlTreeBuilderBamlRecordWriter.cs
- IssuedTokenServiceCredential.cs
- DesignTimeDataBinding.cs
- FixedSOMSemanticBox.cs
- SmiMetaDataProperty.cs
- ComponentDispatcher.cs
- MeasureItemEvent.cs
- WorkflowInstanceQuery.cs
- DllNotFoundException.cs
- GestureRecognitionResult.cs
- ParserHooks.cs
- WindowsAuthenticationEventArgs.cs
- EdmItemCollection.cs
- SoapHttpTransportImporter.cs
- NullableConverter.cs
- BufferedStream.cs
- EnumBuilder.cs
- NonClientArea.cs
- XsltContext.cs
- HTMLTextWriter.cs
- FixedSOMContainer.cs
- RawStylusInput.cs
- FlagsAttribute.cs
- KeyInstance.cs
- BuildResult.cs
- XmlJsonWriter.cs
- XPathSelectionIterator.cs
- FixedSOMPageElement.cs
- PersonalizablePropertyEntry.cs
- StylusPointPropertyUnit.cs
- RC2CryptoServiceProvider.cs
- GlobalProxySelection.cs
- XamlSerializerUtil.cs
- ContextProperty.cs
- Update.cs
- Part.cs
- RuntimeWrappedException.cs
- DataSpaceManager.cs
- CustomTypeDescriptor.cs
- Object.cs
- HtmlShimManager.cs
- BaseComponentEditor.cs
- LinqDataSourceEditData.cs
- MultipartContentParser.cs
- ConfigurationStrings.cs
- ImageListUtils.cs
- DbProviderManifest.cs
- InkCollectionBehavior.cs
- OLEDB_Util.cs
- SharedStream.cs
- SafeCryptContextHandle.cs
- XmlFormatWriterGenerator.cs
- NotifyIcon.cs
- XmlIgnoreAttribute.cs
- SiteOfOriginContainer.cs
- WebPartCollection.cs
- DbModificationClause.cs
- KeyBinding.cs
- RangeValueProviderWrapper.cs
- AmbientLight.cs
- SoapSchemaExporter.cs
- DataBoundLiteralControl.cs
- ObjectDataSourceEventArgs.cs
- DescendantQuery.cs
- DataRelationCollection.cs
- TraceSection.cs
- ReflectionPermission.cs