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
- ModuleConfigurationInfo.cs
- HwndKeyboardInputProvider.cs
- MDIControlStrip.cs
- IsolatedStoragePermission.cs
- UpDownEvent.cs
- DataListItemEventArgs.cs
- metadatamappinghashervisitor.cs
- ContextInformation.cs
- Decoder.cs
- ListViewItemMouseHoverEvent.cs
- ExtentJoinTreeNode.cs
- DataListItemEventArgs.cs
- RegexTree.cs
- Utilities.cs
- HideDisabledControlAdapter.cs
- ReturnType.cs
- MaterialGroup.cs
- ClientSponsor.cs
- HoistedLocals.cs
- AstNode.cs
- SymmetricSecurityProtocolFactory.cs
- MenuItem.cs
- InputReportEventArgs.cs
- MatrixUtil.cs
- Pair.cs
- FixedSOMTextRun.cs
- KeyGestureValueSerializer.cs
- PropagatorResult.cs
- EFDataModelProvider.cs
- Clock.cs
- TextAutomationPeer.cs
- DefaultShape.cs
- MessageBox.cs
- IndexedGlyphRun.cs
- ResourceExpression.cs
- RequestBringIntoViewEventArgs.cs
- util.cs
- XmlSchemaAppInfo.cs
- Package.cs
- BoundingRectTracker.cs
- ScrollChrome.cs
- NavigationWindowAutomationPeer.cs
- Bitmap.cs
- RegexCaptureCollection.cs
- AxHost.cs
- EventTrigger.cs
- HtmlGenericControl.cs
- ListComponentEditorPage.cs
- StringComparer.cs
- _BaseOverlappedAsyncResult.cs
- StyleXamlTreeBuilder.cs
- Image.cs
- ConfigurationException.cs
- CodeBlockBuilder.cs
- Constant.cs
- TextServicesLoader.cs
- SQLChars.cs
- TextViewElement.cs
- PreviewPrintController.cs
- DataGridViewRowCancelEventArgs.cs
- TabRenderer.cs
- UInt32.cs
- GenericTypeParameterBuilder.cs
- TrustLevelCollection.cs
- IPipelineRuntime.cs
- TypefaceMetricsCache.cs
- Bits.cs
- FileDialog.cs
- HostSecurityManager.cs
- WindowsSolidBrush.cs
- EntitySqlQueryCacheKey.cs
- commandenforcer.cs
- GlyphsSerializer.cs
- BufferedWebEventProvider.cs
- CodeComment.cs
- ReadWriteSpinLock.cs
- HttpModuleAction.cs
- NoResizeSelectionBorderGlyph.cs
- HttpRequestCacheValidator.cs
- DataGridCell.cs
- TextPattern.cs
- _NegoState.cs
- PeerHopCountAttribute.cs
- filewebrequest.cs
- RbTree.cs
- RowBinding.cs
- ItemAutomationPeer.cs
- ContentIterators.cs
- BinaryNode.cs
- NoneExcludedImageIndexConverter.cs
- ThemeInfoAttribute.cs
- RecordsAffectedEventArgs.cs
- TiffBitmapDecoder.cs
- CommandLineParser.cs
- ControllableStoryboardAction.cs
- HandoffBehavior.cs
- ToolboxItem.cs
- OLEDB_Enum.cs
- CfgSemanticTag.cs
- wgx_commands.cs