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
- XmlReader.cs
- TextEditorCopyPaste.cs
- COM2PictureConverter.cs
- StringCollectionEditor.cs
- BoolExpr.cs
- OrderToken.cs
- Evidence.cs
- CalculatedColumn.cs
- ConfigDefinitionUpdates.cs
- UniqueEventHelper.cs
- Application.cs
- ArrayItemValue.cs
- PartDesigner.cs
- XmlnsCompatibleWithAttribute.cs
- WizardForm.cs
- AppSecurityManager.cs
- ExtractedStateEntry.cs
- CheckBox.cs
- CssStyleCollection.cs
- ListBindableAttribute.cs
- Baml2006ReaderFrame.cs
- PrincipalPermission.cs
- SQLGuidStorage.cs
- PointCollectionConverter.cs
- XamlSerializerUtil.cs
- WindowsTab.cs
- PriorityRange.cs
- Base64Decoder.cs
- CodeObjectCreateExpression.cs
- WebResourceAttribute.cs
- DesignerActionPropertyItem.cs
- NonBatchDirectoryCompiler.cs
- AudioFormatConverter.cs
- EventWaitHandleSecurity.cs
- Section.cs
- oledbmetadatacollectionnames.cs
- _SslStream.cs
- DateTimeOffsetStorage.cs
- ProgressBar.cs
- GlyphRunDrawing.cs
- PointCollectionConverter.cs
- ProcessMonitor.cs
- PropertyInfoSet.cs
- PseudoWebRequest.cs
- GeneralTransform.cs
- EventMappingSettings.cs
- TreeNodeCollection.cs
- PageDeviceFont.cs
- WebScriptEnablingBehavior.cs
- Inflater.cs
- CloseSequence.cs
- Model3D.cs
- ItemDragEvent.cs
- ProbeMatchesCD1.cs
- ProjectionPlanCompiler.cs
- DependencyPropertyHelper.cs
- ObjectList.cs
- WinInetCache.cs
- MetafileHeader.cs
- TransformerTypeCollection.cs
- IWorkflowDebuggerService.cs
- BamlResourceContent.cs
- WebRequestModulesSection.cs
- FragmentNavigationEventArgs.cs
- ComponentResourceManager.cs
- PointConverter.cs
- PropertyInformation.cs
- StreamFormatter.cs
- ResetableIterator.cs
- ConfigXmlText.cs
- TextElementEnumerator.cs
- _SSPISessionCache.cs
- TreeSet.cs
- baseaxisquery.cs
- StateDesigner.LayoutSelectionGlyph.cs
- DateTimeHelper.cs
- GeneralTransform3DTo2D.cs
- DataGridViewImageCell.cs
- PrePrepareMethodAttribute.cs
- HtmlWindow.cs
- PathParser.cs
- ContentHostHelper.cs
- GlyphElement.cs
- Mapping.cs
- ProfilePropertyNameValidator.cs
- DataGrid.cs
- Literal.cs
- SqlUnionizer.cs
- MeshGeometry3D.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ToolStripItemClickedEventArgs.cs
- OperationParameterInfoCollection.cs
- HtmlTableCellCollection.cs
- XmlTypeAttribute.cs
- IPAddress.cs
- BCLDebug.cs
- HttpListenerContext.cs
- AstNode.cs
- ScriptResourceHandler.cs
- DBDataPermission.cs