Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringFormat.cs
- IISMapPath.cs
- Number.cs
- EntityParameter.cs
- TreeViewImageIndexConverter.cs
- TextEffect.cs
- InvalidPropValue.cs
- MemberHolder.cs
- RegisteredHiddenField.cs
- SvcMapFileSerializer.cs
- XmlNamespaceManager.cs
- TransactedBatchingElement.cs
- SafePointer.cs
- IQueryable.cs
- LabelDesigner.cs
- MeshGeometry3D.cs
- IconHelper.cs
- FigureHelper.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DateTimeValueSerializerContext.cs
- SR.Designer.cs
- ProfileSettingsCollection.cs
- TaiwanLunisolarCalendar.cs
- NetworkCredential.cs
- ListViewAutomationPeer.cs
- UrlMappingsModule.cs
- LineGeometry.cs
- HttpHandlersInstallComponent.cs
- EventLogPermissionEntryCollection.cs
- XhtmlBasicCalendarAdapter.cs
- Tuple.cs
- HttpBufferlessInputStream.cs
- MouseOverProperty.cs
- DataServiceBehavior.cs
- MetadataArtifactLoaderResource.cs
- GridViewDeleteEventArgs.cs
- LingerOption.cs
- SafeHandle.cs
- StringResourceManager.cs
- PrivateFontCollection.cs
- _DigestClient.cs
- ParallelDesigner.cs
- IssuanceLicense.cs
- TransformerInfoCollection.cs
- SecurityElement.cs
- QilValidationVisitor.cs
- WebServiceTypeData.cs
- JsonObjectDataContract.cs
- HtmlFormWrapper.cs
- WebException.cs
- XmlCodeExporter.cs
- DataGridViewCellCancelEventArgs.cs
- IntellisenseTextBox.cs
- BooleanStorage.cs
- _IPv6Address.cs
- CodeAttributeDeclarationCollection.cs
- ClientSideQueueItem.cs
- EventLogPermissionEntry.cs
- VisualBasicReference.cs
- OdbcReferenceCollection.cs
- QilReplaceVisitor.cs
- XmlStreamNodeWriter.cs
- SqlDelegatedTransaction.cs
- XmlChildEnumerator.cs
- XmlTextEncoder.cs
- PackWebRequestFactory.cs
- ChoiceConverter.cs
- GridViewDeletedEventArgs.cs
- Reference.cs
- DataGridViewLinkColumn.cs
- RemotingClientProxy.cs
- Highlights.cs
- RecognizeCompletedEventArgs.cs
- DiscoveryDocumentSearchPattern.cs
- HttpInputStream.cs
- ProtocolsConfiguration.cs
- HtmlTextArea.cs
- TextElementCollection.cs
- ThousandthOfEmRealDoubles.cs
- MatrixKeyFrameCollection.cs
- Accessible.cs
- UInt64Converter.cs
- ControlUtil.cs
- WindowsSecurityTokenAuthenticator.cs
- Point4DConverter.cs
- ConstNode.cs
- BulletDecorator.cs
- Exceptions.cs
- FieldDescriptor.cs
- SchemaCollectionCompiler.cs
- Single.cs
- ArrayTypeMismatchException.cs
- DocumentPageViewAutomationPeer.cs
- Aggregates.cs
- SqlExpressionNullability.cs
- TableRow.cs
- SqlRowUpdatedEvent.cs
- ConnectionStringsExpressionBuilder.cs
- xsdvalidator.cs
- TaskFileService.cs