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
- SmiRequestExecutor.cs
- SelectionItemPattern.cs
- FlowDocumentReader.cs
- MappingException.cs
- DataGridColumnHeaderAutomationPeer.cs
- ObjectDataSourceChooseMethodsPanel.cs
- CFStream.cs
- IList.cs
- StreamAsIStream.cs
- ListViewHitTestInfo.cs
- SequenceRange.cs
- HTMLTextWriter.cs
- MemoryStream.cs
- IDispatchConstantAttribute.cs
- SecUtil.cs
- TemplateControlParser.cs
- XPathDocumentBuilder.cs
- AsyncStreamReader.cs
- DataGridTablesFactory.cs
- TableItemPatternIdentifiers.cs
- StorageAssociationSetMapping.cs
- OLEDB_Util.cs
- Comparer.cs
- AbstractSvcMapFileLoader.cs
- AttributeXamlType.cs
- ModelItemKeyValuePair.cs
- HttpListenerRequest.cs
- SystemInformation.cs
- EventSourceCreationData.cs
- BamlCollectionHolder.cs
- PassportPrincipal.cs
- CalendarTable.cs
- PrintingPermissionAttribute.cs
- WebDescriptionAttribute.cs
- HtmlTableCell.cs
- TimeBoundedCache.cs
- ListArgumentProvider.cs
- ContentPosition.cs
- SynchronizedInputAdaptor.cs
- View.cs
- PackageProperties.cs
- CryptoKeySecurity.cs
- BaseDataList.cs
- XamlNamespaceHelper.cs
- ConfigurationStrings.cs
- ErrorWebPart.cs
- DataObjectPastingEventArgs.cs
- FileIOPermission.cs
- SqlSupersetValidator.cs
- CommandLibraryHelper.cs
- SiteMapNodeCollection.cs
- DataObjectAttribute.cs
- Asn1IntegerConverter.cs
- AssemblyResolver.cs
- Debug.cs
- ResourceIDHelper.cs
- TraceSection.cs
- WebBrowserUriTypeConverter.cs
- Attribute.cs
- PassportAuthenticationModule.cs
- Rotation3D.cs
- TextEffectCollection.cs
- Calendar.cs
- XmlRawWriterWrapper.cs
- Missing.cs
- BooleanAnimationBase.cs
- SHA256Managed.cs
- PropertyGrid.cs
- WindowsSspiNegotiation.cs
- NameTable.cs
- StringArrayEditor.cs
- CmsUtils.cs
- SplineKeyFrames.cs
- ToolStripSplitButton.cs
- ActivityTypeDesigner.xaml.cs
- RegexReplacement.cs
- TemplateColumn.cs
- ChildTable.cs
- WpfWebRequestHelper.cs
- HtmlLabelAdapter.cs
- QilIterator.cs
- DirectionalLight.cs
- WebResponse.cs
- BindableTemplateBuilder.cs
- EnumUnknown.cs
- DesignerLabelAdapter.cs
- SymbolEqualComparer.cs
- CacheMemory.cs
- DataTableCollection.cs
- AttributeSetAction.cs
- PageCatalogPart.cs
- StructuredProperty.cs
- AppSettingsExpressionBuilder.cs
- RequestContextBase.cs
- TrackingMemoryStreamFactory.cs
- WebConfigurationManager.cs
- SourceInterpreter.cs
- Interlocked.cs
- DataServiceResponse.cs
- BadImageFormatException.cs