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
- BindingContext.cs
- BitmapVisualManager.cs
- TableLayoutStyle.cs
- Baml2006KnownTypes.cs
- PingOptions.cs
- CommonDialog.cs
- MetadataUtilsSmi.cs
- PaintEvent.cs
- AutomationIdentifier.cs
- ELinqQueryState.cs
- HttpWebRequest.cs
- WsatConfiguration.cs
- HtmlWindow.cs
- ProcessHostConfigUtils.cs
- ComponentCommands.cs
- XmlUnspecifiedAttribute.cs
- GridViewColumnHeader.cs
- _UncName.cs
- StickyNoteContentControl.cs
- RoleServiceManager.cs
- HtmlMeta.cs
- GcSettings.cs
- SQLConvert.cs
- Message.cs
- ParameterElement.cs
- DragEvent.cs
- Win32SafeHandles.cs
- WebBrowserContainer.cs
- SerializationAttributes.cs
- PageMediaSize.cs
- SessionEndedEventArgs.cs
- CodeSnippetExpression.cs
- TypeDefinition.cs
- TextElementCollection.cs
- DataObject.cs
- CallbackHandler.cs
- PermissionRequestEvidence.cs
- Typeface.cs
- Message.cs
- Literal.cs
- QuotaExceededException.cs
- WebRequest.cs
- ExclusiveTcpListener.cs
- NativeMethods.cs
- SpecularMaterial.cs
- Helper.cs
- XPathMultyIterator.cs
- StrokeNodeEnumerator.cs
- ObjectTag.cs
- FontDifferentiator.cs
- HttpRuntime.cs
- SynchronizedInputProviderWrapper.cs
- SignedPkcs7.cs
- hwndwrapper.cs
- SqlXml.cs
- CompilationUtil.cs
- LookupBindingPropertiesAttribute.cs
- Utility.cs
- GroupBoxRenderer.cs
- FrameworkElementFactoryMarkupObject.cs
- TailCallAnalyzer.cs
- SchemaImporterExtensionsSection.cs
- DocumentViewerHelper.cs
- IPEndPoint.cs
- PageCodeDomTreeGenerator.cs
- SoundPlayer.cs
- IdentityHolder.cs
- AnimationException.cs
- DataGridRow.cs
- NameValueCollection.cs
- OneOfConst.cs
- ComplexPropertyEntry.cs
- BitmapImage.cs
- Rect3DConverter.cs
- TextTreeUndo.cs
- MouseGesture.cs
- InternalsVisibleToAttribute.cs
- IndentTextWriter.cs
- CorrelationValidator.cs
- SamlAdvice.cs
- AuthStoreRoleProvider.cs
- BindingObserver.cs
- NamespaceDecl.cs
- StateRuntime.cs
- OpenTypeLayout.cs
- CompositionTarget.cs
- GridToolTip.cs
- AlternateView.cs
- MimeObjectFactory.cs
- PrivateFontCollection.cs
- GroupQuery.cs
- WebPartAuthorizationEventArgs.cs
- FormatterServices.cs
- RangeValidator.cs
- AxisAngleRotation3D.cs
- DirectoryLocalQuery.cs
- DropDownButton.cs
- CompiledQuery.cs
- TransportElement.cs
- SqlTypeConverter.cs