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
- SafeLibraryHandle.cs
- CalculatedColumn.cs
- LinkButton.cs
- SelectionProviderWrapper.cs
- XmlArrayAttribute.cs
- ActionFrame.cs
- MasterPageParser.cs
- BulletedListEventArgs.cs
- HtmlInputRadioButton.cs
- IntegerValidator.cs
- UnsafeNativeMethods.cs
- DataViewSettingCollection.cs
- LowerCaseStringConverter.cs
- ParallelDesigner.cs
- ClientTargetSection.cs
- ButtonFlatAdapter.cs
- XmlLanguage.cs
- KeyValuePairs.cs
- SqlServer2KCompatibilityAnnotation.cs
- NonParentingControl.cs
- DatePickerDateValidationErrorEventArgs.cs
- TextTreeUndo.cs
- CollectionsUtil.cs
- ActiveXContainer.cs
- ReferenceTypeElement.cs
- BamlLocalizer.cs
- SID.cs
- DataServiceRequest.cs
- MexNamedPipeBindingElement.cs
- HttpRequestBase.cs
- WebPartUserCapability.cs
- _OSSOCK.cs
- DesigntimeLicenseContext.cs
- httpapplicationstate.cs
- sortedlist.cs
- SiteMapNodeItem.cs
- XmlSortKey.cs
- DefaultTraceListener.cs
- XPathDocumentBuilder.cs
- StateMachineAction.cs
- Matrix3DConverter.cs
- StorageRoot.cs
- FormsAuthenticationEventArgs.cs
- CollectionEditorDialog.cs
- TerminateSequenceResponse.cs
- _SSPIWrapper.cs
- WindowsTooltip.cs
- propertytag.cs
- Delegate.cs
- SqlInternalConnection.cs
- DataServiceQueryOfT.cs
- DurableInstanceContextProvider.cs
- SignerInfo.cs
- RelativeSource.cs
- FlowLayout.cs
- Configuration.cs
- KoreanCalendar.cs
- MenuTracker.cs
- ReaderContextStackData.cs
- EmptyReadOnlyDictionaryInternal.cs
- FixedSOMGroup.cs
- HtmlMobileTextWriter.cs
- ToolStripItemClickedEventArgs.cs
- HeaderCollection.cs
- TextProperties.cs
- SerialPinChanges.cs
- WindowsGrip.cs
- SiteMapHierarchicalDataSourceView.cs
- DmlSqlGenerator.cs
- DependentList.cs
- WebRequestModuleElement.cs
- SudsParser.cs
- SendKeys.cs
- RelationalExpressions.cs
- NameNode.cs
- RenderDataDrawingContext.cs
- SafeWaitHandle.cs
- BitmapEffectDrawingContextState.cs
- GeneralTransform3DTo2DTo3D.cs
- Attributes.cs
- Section.cs
- MatcherBuilder.cs
- CultureInfoConverter.cs
- DockAndAnchorLayout.cs
- JsonUriDataContract.cs
- System.Data_BID.cs
- OleDbWrapper.cs
- Button.cs
- SimpleBitVector32.cs
- PointUtil.cs
- SqlInternalConnectionTds.cs
- CapabilitiesUse.cs
- ReceiveSecurityHeaderElementManager.cs
- LongValidatorAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- HelpInfo.cs
- QilStrConcatenator.cs
- XmlnsPrefixAttribute.cs
- SweepDirectionValidation.cs
- XmlnsPrefixAttribute.cs