Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / OrderedDictionaryStateHelper.cs / 1 / OrderedDictionaryStateHelper.cs
//// Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ namespace System.Web.UI { using System; using System.Collections; using System.Collections.Specialized; using System.Runtime.Serialization; using System.Web.Util; internal static class OrderedDictionaryStateHelper { public static void LoadViewState(IOrderedDictionary dictionary, ArrayList state) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } if (state == null) { throw new ArgumentNullException("state"); } if (state != null) { for (int i = 0; i < state.Count; i++) { Pair pairEntry = (Pair)state[i]; dictionary.Add(pairEntry.First, pairEntry.Second); } } } public static ArrayList SaveViewState(IOrderedDictionary dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } ArrayList list = new ArrayList(dictionary.Count); foreach (DictionaryEntry entry in dictionary) { list.Add(new Pair(entry.Key, entry.Value)); } return list; } } } // 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
- PerfCounters.cs
- DynamicResourceExtensionConverter.cs
- BufferBuilder.cs
- ErrorProvider.cs
- NoClickablePointException.cs
- DataSpaceManager.cs
- WithStatement.cs
- IODescriptionAttribute.cs
- CustomAttributeSerializer.cs
- nulltextcontainer.cs
- ReadOnlyCollectionBase.cs
- WindowsListViewScroll.cs
- NestPullup.cs
- CacheMode.cs
- NamedPipeTransportBindingElement.cs
- RegisteredExpandoAttribute.cs
- SafeProcessHandle.cs
- ToolStripPanelRow.cs
- EventManager.cs
- ImageSource.cs
- VectorAnimation.cs
- ToolBarOverflowPanel.cs
- XmlCollation.cs
- WmlLiteralTextAdapter.cs
- RegistryExceptionHelper.cs
- NavigationWindowAutomationPeer.cs
- SubMenuStyle.cs
- AlgoModule.cs
- PolicyChain.cs
- Ipv6Element.cs
- PtsContext.cs
- AsymmetricSignatureDeformatter.cs
- DataGridViewCellStyleConverter.cs
- RoleManagerEventArgs.cs
- BamlWriter.cs
- sqlser.cs
- ArgumentOutOfRangeException.cs
- AssemblyCollection.cs
- InlinedLocationReference.cs
- Msec.cs
- OleDbMetaDataFactory.cs
- PermissionSet.cs
- InternalControlCollection.cs
- IndexerNameAttribute.cs
- TransactionWaitAsyncResult.cs
- IndividualDeviceConfig.cs
- ColumnMapCopier.cs
- DescendantOverDescendantQuery.cs
- PageCache.cs
- HTTPAPI_VERSION.cs
- DPCustomTypeDescriptor.cs
- TimeSpanStorage.cs
- TextEndOfSegment.cs
- SyndicationFeedFormatter.cs
- SoapEnumAttribute.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- followingquery.cs
- CheckBoxAutomationPeer.cs
- ReceiveActivityDesignerTheme.cs
- TimeZone.cs
- CompilerTypeWithParams.cs
- OracleFactory.cs
- CompoundFileStreamReference.cs
- Assembly.cs
- ToolStripDropDownItem.cs
- EmbeddedMailObject.cs
- CollectionEditVerbManager.cs
- EventPropertyMap.cs
- XpsResourceDictionary.cs
- AdRotator.cs
- ResourceContainer.cs
- PropertySet.cs
- MessageEventSubscriptionService.cs
- Pair.cs
- ScriptManager.cs
- Row.cs
- IDReferencePropertyAttribute.cs
- SeekStoryboard.cs
- Int32Rect.cs
- StringToken.cs
- ReadOnlyState.cs
- IPAddressCollection.cs
- Schema.cs
- SinglePageViewer.cs
- IntSecurity.cs
- EntityDescriptor.cs
- DbFunctionCommandTree.cs
- BindingsCollection.cs
- XmlSchemaSequence.cs
- DataControlImageButton.cs
- MediaContextNotificationWindow.cs
- ActivityCodeGenerator.cs
- OleAutBinder.cs
- ResetableIterator.cs
- SqlRetyper.cs
- SubMenuStyle.cs
- InputScopeAttribute.cs
- ImportContext.cs
- FixedMaxHeap.cs
- ParameterBuilder.cs