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
- DataGridViewElement.cs
- DnsEndpointIdentity.cs
- ProcessHostConfigUtils.cs
- DrawListViewColumnHeaderEventArgs.cs
- WSDualHttpBinding.cs
- ScrollChrome.cs
- XPathScanner.cs
- TextParagraphView.cs
- ReflectTypeDescriptionProvider.cs
- SkipQueryOptionExpression.cs
- Visitors.cs
- ToolStripHighContrastRenderer.cs
- CalendarDateChangedEventArgs.cs
- FixedSOMLineRanges.cs
- DynamicValueConverter.cs
- UnmanagedMemoryStreamWrapper.cs
- SqlDataSourceCache.cs
- AmbientProperties.cs
- Timer.cs
- XmlBinaryReader.cs
- Speller.cs
- Int32Rect.cs
- DashStyle.cs
- KeySpline.cs
- GenerateHelper.cs
- RelationshipManager.cs
- ColorTransformHelper.cs
- HierarchicalDataSourceControl.cs
- UnknownWrapper.cs
- Decorator.cs
- XamlGridLengthSerializer.cs
- RankException.cs
- MatrixIndependentAnimationStorage.cs
- NTAccount.cs
- Vector3dCollection.cs
- Composition.cs
- OleDbErrorCollection.cs
- ComponentCommands.cs
- SqlServices.cs
- IssuanceTokenProviderState.cs
- Renderer.cs
- DBProviderConfigurationHandler.cs
- OleDbErrorCollection.cs
- SafeCryptoHandles.cs
- StackSpiller.cs
- Crypto.cs
- Menu.cs
- WebPartConnectionsConnectVerb.cs
- controlskin.cs
- Completion.cs
- SpeechSynthesizer.cs
- HtmlFormParameterReader.cs
- BaseValidator.cs
- Merger.cs
- AsnEncodedData.cs
- DebugInfoExpression.cs
- ListItemParagraph.cs
- AuthenticationException.cs
- StylusCollection.cs
- DuplicateWaitObjectException.cs
- MetadataArtifactLoaderFile.cs
- TransactionTraceIdentifier.cs
- XmlSchema.cs
- RequestQueryParser.cs
- UpDownBase.cs
- CodeDelegateCreateExpression.cs
- Screen.cs
- FormViewPageEventArgs.cs
- XmlMtomWriter.cs
- RetrieveVirtualItemEventArgs.cs
- HtmlTableCellCollection.cs
- LocatorManager.cs
- RootProfilePropertySettingsCollection.cs
- MILUtilities.cs
- ContentPosition.cs
- FillRuleValidation.cs
- storagemappingitemcollection.viewdictionary.cs
- Helpers.cs
- StorageComplexPropertyMapping.cs
- ProvideValueServiceProvider.cs
- MsmqHostedTransportConfiguration.cs
- Figure.cs
- CheckableControlBaseAdapter.cs
- Vector3DAnimationBase.cs
- DropDownButton.cs
- DecimalConverter.cs
- XPathNavigator.cs
- WFItemsToSpacerVisibility.cs
- UnmanagedMemoryStreamWrapper.cs
- GetPageNumberCompletedEventArgs.cs
- XmlSchemaSet.cs
- NetworkInterface.cs
- WebPartConnectionsConnectVerb.cs
- RelationshipManager.cs
- WCFServiceClientProxyGenerator.cs
- XPathAxisIterator.cs
- BitmapFrame.cs
- BufferedGraphics.cs
- PersonalizationStateQuery.cs
- StaticResourceExtension.cs