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
- QueueProcessor.cs
- EdmComplexPropertyAttribute.cs
- ObjectItemAttributeAssemblyLoader.cs
- XMLSyntaxException.cs
- TypeConverterHelper.cs
- DataRow.cs
- BaseCollection.cs
- ConstructorArgumentAttribute.cs
- _OSSOCK.cs
- TransformPattern.cs
- GlobalId.cs
- SerializationFieldInfo.cs
- Dispatcher.cs
- CompilerGlobalScopeAttribute.cs
- ToolStripStatusLabel.cs
- MultipleViewPatternIdentifiers.cs
- TextSelectionHighlightLayer.cs
- HttpListenerRequest.cs
- CompressionTransform.cs
- GridViewEditEventArgs.cs
- Selector.cs
- BitmapEffectGroup.cs
- PermissionListSet.cs
- ToolStrip.cs
- LiteralLink.cs
- DriveNotFoundException.cs
- StoreConnection.cs
- ConditionalAttribute.cs
- XPathNodeHelper.cs
- DateTimeFormatInfoScanner.cs
- ClientEventManager.cs
- KeyInterop.cs
- ExecutionTracker.cs
- MultiDataTrigger.cs
- ControlType.cs
- AvtEvent.cs
- AssertSection.cs
- SemanticBasicElement.cs
- DbDataRecord.cs
- TransformDescriptor.cs
- ListView.cs
- TextServicesDisplayAttributePropertyRanges.cs
- COMException.cs
- Menu.cs
- FreezableOperations.cs
- StaticContext.cs
- SendSecurityHeaderElementContainer.cs
- DetailsViewInsertedEventArgs.cs
- ThreadPool.cs
- AbsoluteQuery.cs
- RangeContentEnumerator.cs
- FtpRequestCacheValidator.cs
- TypedMessageConverter.cs
- RightsManagementPermission.cs
- RecognizerBase.cs
- XmlBindingWorker.cs
- CompilerParameters.cs
- TableRowGroup.cs
- JoinElimination.cs
- CopyNodeSetAction.cs
- IndentTextWriter.cs
- WS2007HttpBindingCollectionElement.cs
- InkCanvas.cs
- BookmarkList.cs
- ColumnBinding.cs
- HitTestFilterBehavior.cs
- TypeContext.cs
- ListParaClient.cs
- WindowsGraphics.cs
- Pair.cs
- EventProviderBase.cs
- WebServiceAttribute.cs
- FuncCompletionCallbackWrapper.cs
- Matrix3DStack.cs
- PropertyChangingEventArgs.cs
- ConnectionPoint.cs
- Behavior.cs
- SqlClientPermission.cs
- InkPresenter.cs
- PeerCustomResolverElement.cs
- XmlSignificantWhitespace.cs
- ArraySortHelper.cs
- ParsedAttributeCollection.cs
- FullTextLine.cs
- DelegateArgumentReference.cs
- ControlEvent.cs
- ResourceDisplayNameAttribute.cs
- KoreanCalendar.cs
- TemplateBamlTreeBuilder.cs
- Application.cs
- FormatConvertedBitmap.cs
- TreeViewCancelEvent.cs
- StorageConditionPropertyMapping.cs
- RemoteWebConfigurationHostServer.cs
- _BufferOffsetSize.cs
- ErrorHandler.cs
- CodeAttachEventStatement.cs
- ConfigurationStrings.cs
- InertiaRotationBehavior.cs
- WsdlImporterElementCollection.cs