Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropDownButton.cs
- EntityDataSourceWrapperCollection.cs
- VariableBinder.cs
- ComponentCommands.cs
- CaseExpr.cs
- CookieHandler.cs
- TemplatePropertyEntry.cs
- TreeIterators.cs
- AuthenticationManager.cs
- ListViewItem.cs
- ProfileSection.cs
- System.Data_BID.cs
- EpmHelper.cs
- ConfigXmlSignificantWhitespace.cs
- UnsafeNativeMethods.cs
- InvokePattern.cs
- ZipIOExtraFieldElement.cs
- ViewCellRelation.cs
- FormViewDeletedEventArgs.cs
- Form.cs
- LongSumAggregationOperator.cs
- ToolStripOverflow.cs
- SystemTcpConnection.cs
- HTMLTagNameToTypeMapper.cs
- EntityDataSourceContainerNameConverter.cs
- securestring.cs
- Substitution.cs
- DbConnectionPoolIdentity.cs
- TemplateKey.cs
- QueueAccessMode.cs
- TextContainerHelper.cs
- ReaderContextStackData.cs
- HostingEnvironmentSection.cs
- BackEase.cs
- Scripts.cs
- InternalRelationshipCollection.cs
- IChannel.cs
- TemplatePropertyEntry.cs
- UiaCoreProviderApi.cs
- LogicalExpr.cs
- URLIdentityPermission.cs
- DataIdProcessor.cs
- ColumnWidthChangedEvent.cs
- HtmlLink.cs
- TextTreeTextNode.cs
- BitmapPalettes.cs
- ParallelTimeline.cs
- FormViewModeEventArgs.cs
- DiscoveryClientChannelBase.cs
- AliasExpr.cs
- OracleMonthSpan.cs
- DataGridItemCollection.cs
- HtmlInputReset.cs
- SolidBrush.cs
- PtsPage.cs
- DbConnectionStringBuilder.cs
- SerializerDescriptor.cs
- CompressStream.cs
- XpsFilter.cs
- TagPrefixInfo.cs
- DataListDesigner.cs
- mediaeventshelper.cs
- AssertFilter.cs
- FileDialogCustomPlace.cs
- CollectionViewGroup.cs
- SettingsAttributeDictionary.cs
- ListViewCancelEventArgs.cs
- AutomationTextAttribute.cs
- Image.cs
- UnauthorizedAccessException.cs
- OperatingSystem.cs
- DesignerActionPanel.cs
- TiffBitmapDecoder.cs
- QueryExecutionOption.cs
- ColorConvertedBitmap.cs
- DataObjectEventArgs.cs
- SchemaConstraints.cs
- ResourceContainer.cs
- HtmlElementEventArgs.cs
- XslTransform.cs
- IdentityManager.cs
- SerialPort.cs
- SymLanguageType.cs
- WebCodeGenerator.cs
- Label.cs
- HttpDictionary.cs
- RightsController.cs
- _ConnectStream.cs
- CustomError.cs
- DataGridViewBand.cs
- AmbientLight.cs
- IconEditor.cs
- SpeechSynthesizer.cs
- RuleSetDialog.Designer.cs
- VirtualizingPanel.cs
- SqlStatistics.cs
- NodeLabelEditEvent.cs
- SymDocumentType.cs
- OracleFactory.cs
- DocumentReferenceCollection.cs