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
- SiteMapHierarchicalDataSourceView.cs
- TableProviderWrapper.cs
- SingleStorage.cs
- NestedContainer.cs
- WorkflowViewManager.cs
- SystemColorTracker.cs
- DrawingContext.cs
- StatusStrip.cs
- XmlSerializerAssemblyAttribute.cs
- AuthenticateEventArgs.cs
- DragEvent.cs
- ResourceReferenceExpression.cs
- PageWrapper.cs
- ExpandSegment.cs
- WorkflowControlEndpoint.cs
- BulletChrome.cs
- MetadataPropertyAttribute.cs
- CellLabel.cs
- BitmapEffect.cs
- XPathEmptyIterator.cs
- Matrix.cs
- HttpWebRequest.cs
- InputLanguageSource.cs
- RuleProcessor.cs
- WebSysDescriptionAttribute.cs
- GlyphTypeface.cs
- PlanCompilerUtil.cs
- ReadingWritingEntityEventArgs.cs
- Options.cs
- DataGridViewHeaderCell.cs
- CounterCreationDataCollection.cs
- TypeForwardedFromAttribute.cs
- HitTestDrawingContextWalker.cs
- AnimationLayer.cs
- AttributeUsageAttribute.cs
- StringAttributeCollection.cs
- DataSetMappper.cs
- RegexNode.cs
- OracleParameterBinding.cs
- SeekableReadStream.cs
- BaseAddressElement.cs
- Canvas.cs
- GcSettings.cs
- SiteMapDataSourceView.cs
- clipboard.cs
- HtmlButton.cs
- COM2ICategorizePropertiesHandler.cs
- PackageRelationshipSelector.cs
- CustomAttributeFormatException.cs
- BCLDebug.cs
- GridViewColumnHeaderAutomationPeer.cs
- followingsibling.cs
- ParamArrayAttribute.cs
- DbConnectionPoolIdentity.cs
- QilDataSource.cs
- Messages.cs
- X509Certificate2Collection.cs
- AttributeSetAction.cs
- WebPartTransformerCollection.cs
- SmuggledIUnknown.cs
- DataGridRowHeaderAutomationPeer.cs
- OdbcEnvironment.cs
- ResolveNameEventArgs.cs
- dtdvalidator.cs
- DispatchChannelSink.cs
- TypeAccessException.cs
- Parsers.cs
- ComponentEditorForm.cs
- ErrorsHelper.cs
- FunctionMappingTranslator.cs
- ConfigPathUtility.cs
- FtpRequestCacheValidator.cs
- AuthenticationModuleElement.cs
- PageTheme.cs
- NetworkInformationException.cs
- AsyncStreamReader.cs
- PackWebRequestFactory.cs
- DispatcherTimer.cs
- HtmlListAdapter.cs
- EntityDataSourceValidationException.cs
- ConcurrentDictionary.cs
- CfgParser.cs
- DesignerTransactionCloseEvent.cs
- HtmlTableRow.cs
- autovalidator.cs
- AssemblyInfo.cs
- BackgroundFormatInfo.cs
- MarshalByValueComponent.cs
- HtmlUtf8RawTextWriter.cs
- DataFormats.cs
- _OSSOCK.cs
- TypeListConverter.cs
- ZipIOCentralDirectoryBlock.cs
- FlowDocumentReaderAutomationPeer.cs
- ScriptResourceInfo.cs
- RowToFieldTransformer.cs
- SystemMulticastIPAddressInformation.cs
- PictureBox.cs
- HMACRIPEMD160.cs
- Error.cs