Code:
/ DotNET / DotNET / 8.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
- SpecialFolderEnumConverter.cs
- ExpressionEditorAttribute.cs
- BlockUIContainer.cs
- ConsumerConnectionPointCollection.cs
- QueryOutputWriter.cs
- TrackPointCollection.cs
- TraceContextEventArgs.cs
- KernelTypeValidation.cs
- DataControlExtensions.cs
- DrawListViewColumnHeaderEventArgs.cs
- ListControlDataBindingHandler.cs
- KnownBoxes.cs
- UITypeEditor.cs
- LoginStatusDesigner.cs
- Win32.cs
- SchemaElementDecl.cs
- PageEventArgs.cs
- DbConnectionFactory.cs
- HtmlInputPassword.cs
- SchemaMapping.cs
- DropShadowBitmapEffect.cs
- Graph.cs
- TypeForwardedToAttribute.cs
- PeerCollaboration.cs
- Container.cs
- RuntimeResourceSet.cs
- WebBrowser.cs
- DataServiceHostWrapper.cs
- CapabilitiesPattern.cs
- safex509handles.cs
- StringBuilder.cs
- SafeEventLogReadHandle.cs
- ListControlConvertEventArgs.cs
- ContentControl.cs
- QueryRewriter.cs
- GraphicsPath.cs
- XmlWrappingWriter.cs
- DiscoveryClientDocuments.cs
- SingleConverter.cs
- ISessionStateStore.cs
- MessageQueueKey.cs
- PageRanges.cs
- LongValidatorAttribute.cs
- WebConfigurationFileMap.cs
- SerializationInfo.cs
- ConnectionInterfaceCollection.cs
- Axis.cs
- ExpandCollapsePattern.cs
- ProviderConnectionPoint.cs
- DocumentSequenceHighlightLayer.cs
- GroupedContextMenuStrip.cs
- CompatibleIComparer.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- _SSPISessionCache.cs
- XPathPatternParser.cs
- MappingException.cs
- MouseBinding.cs
- GenerateScriptTypeAttribute.cs
- WindowsFormsDesignerOptionService.cs
- DictionaryEntry.cs
- UnSafeCharBuffer.cs
- WebServiceData.cs
- DefaultMemberAttribute.cs
- ImageAttributes.cs
- SecurityAppliedMessage.cs
- CatalogUtil.cs
- SystemParameters.cs
- MembershipAdapter.cs
- remotingproxy.cs
- RuntimeConfigLKG.cs
- ToolZoneDesigner.cs
- FontWeight.cs
- GenerateHelper.cs
- WindowsFormsLinkLabel.cs
- QuaternionRotation3D.cs
- DeploymentSection.cs
- CacheVirtualItemsEvent.cs
- xmlfixedPageInfo.cs
- RegistrationServices.cs
- ConfigurationCollectionAttribute.cs
- AutoFocusStyle.xaml.cs
- BindingGraph.cs
- Stylus.cs
- CodeDelegateInvokeExpression.cs
- AppDomainProtocolHandler.cs
- SqlClientWrapperSmiStreamChars.cs
- NewExpression.cs
- StringAnimationUsingKeyFrames.cs
- TextParagraphView.cs
- WebPartDisplayModeEventArgs.cs
- NullableFloatAverageAggregationOperator.cs
- HttpCachePolicyElement.cs
- ReaderWriterLock.cs
- Baml2006SchemaContext.cs
- HttpWrapper.cs
- Selection.cs
- TemplateManager.cs
- EntityAdapter.cs
- PeerNearMe.cs
- TraceXPathNavigator.cs