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
- ConditionalAttribute.cs
- JsonCollectionDataContract.cs
- IndentTextWriter.cs
- FullTrustAssembliesSection.cs
- DbConnectionPoolOptions.cs
- SpotLight.cs
- BitmapEffectDrawing.cs
- SR.cs
- HiddenFieldDesigner.cs
- PointAnimationUsingKeyFrames.cs
- DefaultAssemblyResolver.cs
- XmlAnyElementAttribute.cs
- RuleRefElement.cs
- MouseBinding.cs
- RectangleHotSpot.cs
- RowToFieldTransformer.cs
- DBConnectionString.cs
- InternalPermissions.cs
- WebPartEditorCancelVerb.cs
- HashAlgorithm.cs
- DataKey.cs
- EntityViewGenerationConstants.cs
- XmlSchemaFacet.cs
- PropertyBuilder.cs
- ImageMapEventArgs.cs
- UInt32.cs
- DataGridViewImageColumn.cs
- ObjectReaderCompiler.cs
- XPathNodePointer.cs
- WindowsSecurityToken.cs
- SinglePageViewer.cs
- ButtonColumn.cs
- SortKey.cs
- JumpPath.cs
- MenuCommand.cs
- Executor.cs
- CriticalHandle.cs
- SmtpAuthenticationManager.cs
- ThicknessAnimation.cs
- AlphabeticalEnumConverter.cs
- TextChange.cs
- SecureConversationDriver.cs
- WaitHandleCannotBeOpenedException.cs
- ServiceOperationParameter.cs
- XXXOnTypeBuilderInstantiation.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ISO2022Encoding.cs
- MenuCommandService.cs
- ConfigViewGenerator.cs
- FreeFormDragDropManager.cs
- XAMLParseException.cs
- HandledMouseEvent.cs
- EventWaitHandleSecurity.cs
- PagePropertiesChangingEventArgs.cs
- FacetEnabledSchemaElement.cs
- Vector3DKeyFrameCollection.cs
- CompressedStack.cs
- ProfileService.cs
- HexParser.cs
- NamespaceMapping.cs
- InsufficientExecutionStackException.cs
- BeginStoryboard.cs
- MultiAsyncResult.cs
- TextRangeEditTables.cs
- FontFamilyValueSerializer.cs
- WebPartChrome.cs
- NetworkStream.cs
- SocketCache.cs
- X509Certificate2Collection.cs
- DataSysAttribute.cs
- ProfileGroupSettings.cs
- Int64AnimationBase.cs
- UpdateRecord.cs
- WebPartVerbCollection.cs
- ServicePerformanceCounters.cs
- EdgeModeValidation.cs
- CancellationTokenRegistration.cs
- DispatcherProcessingDisabled.cs
- AttributeData.cs
- TypedRowHandler.cs
- ArraySubsetEnumerator.cs
- bidPrivateBase.cs
- PreviewKeyDownEventArgs.cs
- IOThreadTimer.cs
- ChannelBinding.cs
- Header.cs
- EventToken.cs
- FilterableAttribute.cs
- HashCodeCombiner.cs
- ContextMenuService.cs
- RemoteX509Token.cs
- RepeaterDesigner.cs
- AssociationTypeEmitter.cs
- SetStoryboardSpeedRatio.cs
- ContextProperty.cs
- ObjectStateFormatter.cs
- CDSsyncETWBCLProvider.cs
- DropShadowBitmapEffect.cs
- EditorZone.cs
- ValidatedMobileControlConverter.cs