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
- Dispatcher.cs
- WmpBitmapEncoder.cs
- SingleResultAttribute.cs
- Nullable.cs
- ScriptControl.cs
- MsmqBindingMonitor.cs
- ScriptReferenceEventArgs.cs
- Geometry3D.cs
- HttpHandlerActionCollection.cs
- TCEAdapterGenerator.cs
- XhtmlBasicCommandAdapter.cs
- WebServiceData.cs
- ProgressBar.cs
- ClientRolePrincipal.cs
- WindowsFormsHost.cs
- CommonProperties.cs
- CodeTypeReferenceCollection.cs
- Identifier.cs
- WriteableBitmap.cs
- DesignerEventService.cs
- PhysicalFontFamily.cs
- SafeSerializationManager.cs
- FlowNode.cs
- ImageSourceConverter.cs
- SqlParameter.cs
- FormsAuthenticationUser.cs
- EncoderBestFitFallback.cs
- GridViewRowPresenterBase.cs
- COM2ExtendedTypeConverter.cs
- ThreadExceptionDialog.cs
- SqlProvider.cs
- SystemIcmpV4Statistics.cs
- NTAccount.cs
- UnsafeNativeMethods.cs
- GiveFeedbackEvent.cs
- HMACSHA256.cs
- EventEntry.cs
- TraceHandlerErrorFormatter.cs
- PrintingPermission.cs
- TextBoxBase.cs
- TaskFileService.cs
- LinqDataSourceSelectEventArgs.cs
- PathBox.cs
- ToolBarButton.cs
- GuidelineCollection.cs
- TextDecorationUnitValidation.cs
- DrawingBrush.cs
- DispatcherSynchronizationContext.cs
- ParameterModifier.cs
- SplitContainer.cs
- PerformanceCounterManager.cs
- VerifyHashRequest.cs
- SystemIPGlobalStatistics.cs
- DesignBindingValueUIHandler.cs
- ToolStripGrip.cs
- ListChangedEventArgs.cs
- BuildResultCache.cs
- BinHexDecoder.cs
- ObjectDataSourceWizardForm.cs
- MethodImplAttribute.cs
- PieceNameHelper.cs
- InheritanceContextChangedEventManager.cs
- IDictionary.cs
- CheckBoxStandardAdapter.cs
- NonPrimarySelectionGlyph.cs
- HttpContextWrapper.cs
- ViewStateException.cs
- BlurEffect.cs
- Update.cs
- ValueProviderWrapper.cs
- CheckBoxStandardAdapter.cs
- IChannel.cs
- ExpandCollapsePattern.cs
- AutomationPatternInfo.cs
- EntityClassGenerator.cs
- EditorPart.cs
- IERequestCache.cs
- SmiRecordBuffer.cs
- COM2ExtendedUITypeEditor.cs
- GPPOINT.cs
- QuaternionAnimationBase.cs
- CellConstantDomain.cs
- XmlElement.cs
- FontNamesConverter.cs
- PriorityQueue.cs
- util.cs
- PtsCache.cs
- XmlTextReaderImplHelpers.cs
- FolderBrowserDialog.cs
- ControlEvent.cs
- SqlConnectionString.cs
- XmlSchemaImporter.cs
- EndpointConfigContainer.cs
- OverlappedAsyncResult.cs
- ListViewEditEventArgs.cs
- LostFocusEventManager.cs
- Animatable.cs
- SerialStream.cs
- SplayTreeNode.cs
- ConfigurationStrings.cs