Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / OrderedDictionaryStateHelper.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableLayoutPanelCellPosition.cs
- SmtpNegotiateAuthenticationModule.cs
- BitmapFrame.cs
- ServicePointManagerElement.cs
- BaseCodePageEncoding.cs
- AttributeData.cs
- ECDiffieHellmanPublicKey.cs
- RuntimeArgumentHandle.cs
- QilScopedVisitor.cs
- _BaseOverlappedAsyncResult.cs
- WpfMemberInvoker.cs
- BinaryKeyIdentifierClause.cs
- ManipulationInertiaStartingEventArgs.cs
- StringAnimationBase.cs
- XmlExtensionFunction.cs
- WebPartDisplayModeEventArgs.cs
- SQLBytesStorage.cs
- AuthenticationConfig.cs
- DictionaryGlobals.cs
- MasterPageCodeDomTreeGenerator.cs
- UpdatePanelTriggerCollection.cs
- PreDigestedSignedInfo.cs
- WindowsToolbarItemAsMenuItem.cs
- DiagnosticsConfigurationHandler.cs
- DrawListViewSubItemEventArgs.cs
- DataException.cs
- SelectionWordBreaker.cs
- BinHexEncoder.cs
- DetailsViewRowCollection.cs
- FileStream.cs
- ProvideValueServiceProvider.cs
- DocumentPaginator.cs
- EditableRegion.cs
- HtmlEncodedRawTextWriter.cs
- FileDialog_Vista.cs
- TextDataBindingHandler.cs
- ItemContainerGenerator.cs
- CodeTryCatchFinallyStatement.cs
- SpeakProgressEventArgs.cs
- PersonalizationState.cs
- DataGridParentRows.cs
- DBBindings.cs
- TextChangedEventArgs.cs
- UndoEngine.cs
- Collection.cs
- RichTextBox.cs
- LoginView.cs
- PageCanvasSize.cs
- GroupStyle.cs
- RoutedEventValueSerializer.cs
- PropertySourceInfo.cs
- ValidationRuleCollection.cs
- ClientScriptItemCollection.cs
- ACL.cs
- ItemDragEvent.cs
- HtmlElementErrorEventArgs.cs
- DataBoundLiteralControl.cs
- SecurityException.cs
- HiddenField.cs
- ResourcesChangeInfo.cs
- ContentPresenter.cs
- WmlObjectListAdapter.cs
- FontFaceLayoutInfo.cs
- OutOfProcStateClientManager.cs
- AppendHelper.cs
- RenderTargetBitmap.cs
- HttpWebResponse.cs
- XmlUrlResolver.cs
- XmlSerializerNamespaces.cs
- DataGridViewCellMouseEventArgs.cs
- ScriptControlManager.cs
- TypeInfo.cs
- InteropBitmapSource.cs
- BitmapEffectInput.cs
- BinaryFormatter.cs
- WpfXamlLoader.cs
- ResourceProperty.cs
- JournalEntry.cs
- OptionalColumn.cs
- TypefaceCollection.cs
- LayoutTable.cs
- FilteredDataSetHelper.cs
- COM2EnumConverter.cs
- AbsoluteQuery.cs
- DataGridViewButtonCell.cs
- ManagementObjectCollection.cs
- ConsoleCancelEventArgs.cs
- VariantWrapper.cs
- TrustManager.cs
- GenericEnumConverter.cs
- SafeNativeMethods.cs
- StatusBarAutomationPeer.cs
- WorkflowTraceTransfer.cs
- listitem.cs
- WorkflowOperationAsyncResult.cs
- remotingproxy.cs
- RoleManagerEventArgs.cs
- SecurityTokenValidationException.cs
- TogglePattern.cs
- SqlConnectionPoolGroupProviderInfo.cs