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
- ComponentDesigner.cs
- Header.cs
- KeyboardEventArgs.cs
- odbcmetadatafactory.cs
- DataViewSettingCollection.cs
- DragDrop.cs
- RightsManagementPermission.cs
- RowToFieldTransformer.cs
- MenuItemCollectionEditorDialog.cs
- HtmlHistory.cs
- EdmScalarPropertyAttribute.cs
- Transform.cs
- Rect3D.cs
- ChtmlFormAdapter.cs
- HttpModuleCollection.cs
- ActivityBuilderHelper.cs
- UrlMappingsSection.cs
- DispatcherTimer.cs
- EncryptedReference.cs
- WebBrowser.cs
- TemplateEditingVerb.cs
- WindowsTitleBar.cs
- TextParagraphCache.cs
- ComponentEditorPage.cs
- OutOfProcStateClientManager.cs
- WebBrowser.cs
- RuntimeVariablesExpression.cs
- HwndMouseInputProvider.cs
- ContextInformation.cs
- XpsDigitalSignature.cs
- BitmapEffect.cs
- AutoCompleteStringCollection.cs
- XmlException.cs
- HttpCookieCollection.cs
- TemplateColumn.cs
- LeftCellWrapper.cs
- DetailsView.cs
- Translator.cs
- UnknownBitmapEncoder.cs
- TableSectionStyle.cs
- DetailsViewInsertEventArgs.cs
- BindingGroup.cs
- SafeCancelMibChangeNotify.cs
- DataTrigger.cs
- BufferedOutputStream.cs
- AttributeQuery.cs
- RecommendedAsConfigurableAttribute.cs
- CornerRadius.cs
- OutputCacheModule.cs
- IndexOutOfRangeException.cs
- EarlyBoundInfo.cs
- WindowAutomationPeer.cs
- PropertyMetadata.cs
- BinaryObjectInfo.cs
- CodeIndexerExpression.cs
- URL.cs
- MetadataCacheItem.cs
- TextEditorContextMenu.cs
- KerberosSecurityTokenProvider.cs
- Query.cs
- DbXmlEnabledProviderManifest.cs
- DesignTimeTemplateParser.cs
- FixedDocument.cs
- RangeBase.cs
- ProviderCollection.cs
- ToolStripDropDownItem.cs
- ParseChildrenAsPropertiesAttribute.cs
- FrameworkElementFactory.cs
- Renderer.cs
- ConfigXmlAttribute.cs
- SubMenuStyleCollectionEditor.cs
- LinearKeyFrames.cs
- FusionWrap.cs
- CodeObject.cs
- AssemblyContextControlItem.cs
- CodeGenerator.cs
- QueryStatement.cs
- WindowsSolidBrush.cs
- FormatStringEditor.cs
- SmtpNegotiateAuthenticationModule.cs
- GraphicsContainer.cs
- WarningException.cs
- ApplicationProxyInternal.cs
- XPathConvert.cs
- TextLine.cs
- CharEntityEncoderFallback.cs
- SiteMapNodeItem.cs
- PropertyMetadata.cs
- ResolveCriteriaApril2005.cs
- ReferenceAssemblyAttribute.cs
- DataGridViewCellConverter.cs
- InvalidPrinterException.cs
- _NegotiateClient.cs
- ResourceIDHelper.cs
- StreamGeometry.cs
- Int32RectConverter.cs
- PersistenceTypeAttribute.cs
- FixedSOMLineCollection.cs
- RegexNode.cs
- DelegatingTypeDescriptionProvider.cs