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
- StructuredProperty.cs
- GridViewUpdatedEventArgs.cs
- _RequestCacheProtocol.cs
- PropertyEmitter.cs
- TagPrefixCollection.cs
- Merger.cs
- safelink.cs
- RuntimeTrackingProfile.cs
- InstanceKeyView.cs
- BulletChrome.cs
- Rotation3DAnimation.cs
- SoapClientProtocol.cs
- XsdValidatingReader.cs
- PrincipalPermission.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- documentsequencetextcontainer.cs
- SharedPersonalizationStateInfo.cs
- TemplateXamlTreeBuilder.cs
- OutputWindow.cs
- Attachment.cs
- Rect3D.cs
- LocatorPartList.cs
- PtsHelper.cs
- TextTreePropertyUndoUnit.cs
- Configuration.cs
- sqlcontext.cs
- ValueSerializer.cs
- StoreContentChangedEventArgs.cs
- WorkflowTimerService.cs
- DataGridViewRowEventArgs.cs
- ButtonStandardAdapter.cs
- IPGlobalProperties.cs
- UpdateTranslator.cs
- FileRegion.cs
- PersianCalendar.cs
- CodeTypeParameterCollection.cs
- log.cs
- Container.cs
- PointValueSerializer.cs
- SortQuery.cs
- EmissiveMaterial.cs
- TypeDelegator.cs
- DataGridToolTip.cs
- DtrList.cs
- SystemIcmpV6Statistics.cs
- BitFlagsGenerator.cs
- ModuleElement.cs
- ErrorFormatter.cs
- HttpProfileBase.cs
- SerializationAttributes.cs
- UpdateException.cs
- LoginName.cs
- AttributeProviderAttribute.cs
- DocumentOrderComparer.cs
- WebPartVerbsEventArgs.cs
- PixelShader.cs
- ScrollChrome.cs
- ReachSerializerAsync.cs
- HelpEvent.cs
- SamlAuthorizationDecisionClaimResource.cs
- TextTreeText.cs
- WorkflowPersistenceContext.cs
- Base64Encoder.cs
- XmlHierarchicalEnumerable.cs
- Screen.cs
- ZoneIdentityPermission.cs
- ServiceSettingsResponseInfo.cs
- ComponentManagerBroker.cs
- DataGridViewSortCompareEventArgs.cs
- OdbcConnectionHandle.cs
- PageThemeCodeDomTreeGenerator.cs
- FixedFlowMap.cs
- InputLangChangeEvent.cs
- TextSpan.cs
- WebPartConnectionsConfigureVerb.cs
- TypeElement.cs
- Pointer.cs
- COM2PropertyPageUITypeConverter.cs
- BookmarkTable.cs
- ClientConfigurationHost.cs
- XmlQueryCardinality.cs
- TrustManagerMoreInformation.cs
- InternalPermissions.cs
- WebPartActionVerb.cs
- UnionExpr.cs
- TextElement.cs
- XmlSchemaComplexContent.cs
- linebase.cs
- TextTreeDeleteContentUndoUnit.cs
- PolicyException.cs
- Tracking.cs
- RestClientProxyHandler.cs
- PermissionSetEnumerator.cs
- ModelTreeEnumerator.cs
- QilPatternFactory.cs
- WindowsAuthenticationEventArgs.cs
- BaseDataBoundControlDesigner.cs
- xdrvalidator.cs
- MulticastNotSupportedException.cs
- SQLMoneyStorage.cs