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
- CaseCqlBlock.cs
- DependencyObject.cs
- CompositeFontFamily.cs
- PropertyChange.cs
- WSHttpSecurity.cs
- AnimationLayer.cs
- RemotingHelper.cs
- State.cs
- DataGridHyperlinkColumn.cs
- ApplicationServiceManager.cs
- ParserContext.cs
- TemplateParser.cs
- _ChunkParse.cs
- CollectionMarkupSerializer.cs
- InkPresenter.cs
- WebConfigurationHostFileChange.cs
- SQLMoneyStorage.cs
- ResXBuildProvider.cs
- RolePrincipal.cs
- XPathNode.cs
- CharKeyFrameCollection.cs
- SqlErrorCollection.cs
- GetCryptoTransformRequest.cs
- Atom10FeedFormatter.cs
- XsltSettings.cs
- ProtocolImporter.cs
- clipboard.cs
- Facet.cs
- ContentOperations.cs
- DateTimeParse.cs
- TextDecoration.cs
- ObsoleteAttribute.cs
- WasAdminWrapper.cs
- MouseButtonEventArgs.cs
- CollectionChangeEventArgs.cs
- HighContrastHelper.cs
- TreeNode.cs
- RoutedCommand.cs
- WindowsListViewGroupHelper.cs
- SafeNativeMethods.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- PrivateFontCollection.cs
- TraceUtility.cs
- CheckBoxField.cs
- StructuredTypeEmitter.cs
- WebPartCatalogAddVerb.cs
- HttpDictionary.cs
- Number.cs
- CalendarDayButton.cs
- TextWriter.cs
- DrawingCollection.cs
- RepeaterItemEventArgs.cs
- ConnectionString.cs
- CapabilitiesRule.cs
- TextureBrush.cs
- SecurityKeyUsage.cs
- ClientRoleProvider.cs
- FontSource.cs
- SettingsPropertyWrongTypeException.cs
- XmlNamespaceDeclarationsAttribute.cs
- Propagator.cs
- DelegatedStream.cs
- XmlTypeMapping.cs
- ParseElement.cs
- TrustManagerPromptUI.cs
- Calendar.cs
- RequestCacheEntry.cs
- SessionStateSection.cs
- TypeReference.cs
- GroupItemAutomationPeer.cs
- RegexReplacement.cs
- CompositeActivityMarkupSerializer.cs
- ThicknessAnimationUsingKeyFrames.cs
- DesignerOptionService.cs
- Version.cs
- MsmqHostedTransportConfiguration.cs
- NameNode.cs
- ListViewTableRow.cs
- UIElement3D.cs
- CustomErrorCollection.cs
- ParsedRoute.cs
- XmlSchemaObjectCollection.cs
- DbConnectionClosed.cs
- PointCollectionConverter.cs
- StylusPlugInCollection.cs
- WinEventTracker.cs
- SimpleType.cs
- WorkflowDurableInstance.cs
- ProjectionPlanCompiler.cs
- BindingOperations.cs
- WebResponse.cs
- TreeViewImageGenerator.cs
- SymDocumentType.cs
- SafeSystemMetrics.cs
- OleDbPropertySetGuid.cs
- SEHException.cs
- SqlUdtInfo.cs
- WinEventHandler.cs
- CustomBindingCollectionElement.cs
- ContainerFilterService.cs