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
- RolePrincipal.cs
- CollectionChangeEventArgs.cs
- SafeNativeMemoryHandle.cs
- Point.cs
- HwndProxyElementProvider.cs
- BindingWorker.cs
- RuleSettings.cs
- MemoryResponseElement.cs
- TreeNodeCollection.cs
- CurrencyManager.cs
- SqlDelegatedTransaction.cs
- StsCommunicationException.cs
- MdiWindowListItemConverter.cs
- SapiRecoContext.cs
- DbParameterCollectionHelper.cs
- PerfCounters.cs
- Roles.cs
- Char.cs
- Operators.cs
- XmlSerializerSection.cs
- CodeIdentifiers.cs
- KeyGestureValueSerializer.cs
- TemplateAction.cs
- OrderedDictionary.cs
- MaskedTextBoxTextEditorDropDown.cs
- TraceUtility.cs
- FieldBuilder.cs
- UidManager.cs
- PerformanceCounter.cs
- EnumValAlphaComparer.cs
- ScrollEvent.cs
- GridViewRow.cs
- SerializationInfoEnumerator.cs
- ExpressionReplacer.cs
- KeyedHashAlgorithm.cs
- LinkLabel.cs
- Int16KeyFrameCollection.cs
- ReferenceSchema.cs
- DataGridSortCommandEventArgs.cs
- CodeDomSerializerBase.cs
- DllNotFoundException.cs
- AssemblySettingAttributes.cs
- FamilyMap.cs
- CreateUserWizardAutoFormat.cs
- FactoryMaker.cs
- XsdCachingReader.cs
- IsolatedStorageFilePermission.cs
- StopStoryboard.cs
- AttributeProviderAttribute.cs
- ElementFactory.cs
- AccessText.cs
- MaskedTextProvider.cs
- CopyNodeSetAction.cs
- DataListAutoFormat.cs
- EndPoint.cs
- StoreAnnotationsMap.cs
- VirtualPathUtility.cs
- SubstitutionResponseElement.cs
- XmlSortKey.cs
- WebPartUtil.cs
- FileDialog_Vista_Interop.cs
- SqlRetyper.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- VisualTreeFlattener.cs
- LoginView.cs
- WebProxyScriptElement.cs
- ResourceExpressionBuilder.cs
- TreeViewImageKeyConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SqlServer2KCompatibilityCheck.cs
- SmtpSection.cs
- PageEventArgs.cs
- ListBox.cs
- TreeViewItem.cs
- SelectionHighlightInfo.cs
- Task.cs
- Stream.cs
- AspNetSynchronizationContext.cs
- SerialReceived.cs
- StagingAreaInputItem.cs
- FrameworkEventSource.cs
- LogWriteRestartAreaState.cs
- RecordConverter.cs
- TextTreeUndoUnit.cs
- ResourceExpression.cs
- OutputChannelBinder.cs
- SendReply.cs
- SchemaDeclBase.cs
- WorkflowServiceBehavior.cs
- ToolboxBitmapAttribute.cs
- SqlFactory.cs
- AuthStoreRoleProvider.cs
- MatrixValueSerializer.cs
- OracleNumber.cs
- DeviceContext2.cs
- TypedTableGenerator.cs
- BulletedListEventArgs.cs
- AttachedPropertyInfo.cs
- RetriableClipboard.cs
- CodeMemberMethod.cs