Code:
/ DotNET / DotNET / 8.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
- TextPointer.cs
- MenuEventArgs.cs
- DataRelationCollection.cs
- SweepDirectionValidation.cs
- CustomErrorsSection.cs
- SecurityPolicySection.cs
- MailWebEventProvider.cs
- PropertyDescriptorComparer.cs
- MetadataCacheItem.cs
- GPPOINT.cs
- KerberosSecurityTokenProvider.cs
- TemplateInstanceAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- ClaimTypes.cs
- HttpModuleCollection.cs
- EventSinkActivity.cs
- Cursors.cs
- WebPartCatalogCloseVerb.cs
- ContentFileHelper.cs
- ImageEditor.cs
- GridViewUpdatedEventArgs.cs
- GotoExpression.cs
- DesignerToolStripControlHost.cs
- TracingConnection.cs
- DesigntimeLicenseContext.cs
- LinearGradientBrush.cs
- EntityContainer.cs
- ListViewTableCell.cs
- SystemDropShadowChrome.cs
- ImplicitInputBrush.cs
- DataGridViewCellEventArgs.cs
- DefaultWorkflowSchedulerService.cs
- AsymmetricSignatureDeformatter.cs
- CallSite.cs
- DesignTimeTemplateParser.cs
- FirstQueryOperator.cs
- SqlDataSourceStatusEventArgs.cs
- XsdDuration.cs
- LabelAutomationPeer.cs
- webeventbuffer.cs
- StringExpressionSet.cs
- RangeValueProviderWrapper.cs
- CroppedBitmap.cs
- String.cs
- TransformProviderWrapper.cs
- ConcurrentBag.cs
- StateMachineExecutionState.cs
- FolderBrowserDialogDesigner.cs
- Keywords.cs
- CollectionViewGroupInternal.cs
- EqualityComparer.cs
- DataControlFieldCollection.cs
- Errors.cs
- EventHandlersStore.cs
- UserPreferenceChangedEventArgs.cs
- PeekCompletedEventArgs.cs
- WindowsStartMenu.cs
- Win32.cs
- SettingsPropertyValue.cs
- ResourceProviderFactory.cs
- RootNamespaceAttribute.cs
- MD5.cs
- TrustSection.cs
- StylusLogic.cs
- DragDrop.cs
- UrlMappingCollection.cs
- CollectionConverter.cs
- PropertyKey.cs
- ResourceDescriptionAttribute.cs
- XPathException.cs
- CodeTypeOfExpression.cs
- GenericAuthenticationEventArgs.cs
- basecomparevalidator.cs
- CacheAxisQuery.cs
- _DisconnectOverlappedAsyncResult.cs
- ScrollEvent.cs
- WindowsGraphicsWrapper.cs
- mediaeventshelper.cs
- ReflectionPermission.cs
- BindableAttribute.cs
- DataGridViewCheckBoxCell.cs
- Compilation.cs
- RecognitionResult.cs
- BitmapEffectInput.cs
- PeerNameRegistration.cs
- ResourceAssociationType.cs
- SQLDateTime.cs
- QueryGenerator.cs
- FixedSOMPageElement.cs
- SrgsNameValueTag.cs
- StorageScalarPropertyMapping.cs
- SystemIPGlobalProperties.cs
- StringInfo.cs
- KeyValueSerializer.cs
- MethodCallTranslator.cs
- Random.cs
- ListItemViewAttribute.cs
- InfoCardMasterKey.cs
- UnitControl.cs
- mediaeventshelper.cs