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
- StringAnimationUsingKeyFrames.cs
- Int32CollectionConverter.cs
- RawUIStateInputReport.cs
- TextTreeText.cs
- SmtpLoginAuthenticationModule.cs
- DnsPermission.cs
- SoapSchemaMember.cs
- StrongNameIdentityPermission.cs
- RegularExpressionValidator.cs
- XmlStreamNodeWriter.cs
- CodeSnippetTypeMember.cs
- ListItemCollection.cs
- MenuTracker.cs
- ServiceReference.cs
- SerializationAttributes.cs
- RtfFormatStack.cs
- CheckBoxStandardAdapter.cs
- TableSectionStyle.cs
- BuildProviderAppliesToAttribute.cs
- XmlQuerySequence.cs
- EventLogPermission.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlSchemaAnnotation.cs
- RichTextBox.cs
- ObjectAnimationUsingKeyFrames.cs
- HtmlTable.cs
- PersistenceTypeAttribute.cs
- XmlCDATASection.cs
- ProfilePropertySettings.cs
- BufferedReadStream.cs
- ItemCheckedEvent.cs
- UrlMappingCollection.cs
- SecureUICommand.cs
- DataGridViewCheckBoxCell.cs
- TrustManagerPromptUI.cs
- ProgressBarRenderer.cs
- ScanQueryOperator.cs
- Sorting.cs
- SupportingTokenDuplexChannel.cs
- XmlSchemaExternal.cs
- Timer.cs
- CheckedListBox.cs
- ListCommandEventArgs.cs
- _DynamicWinsockMethods.cs
- TreeIterator.cs
- RouteItem.cs
- XsltLoader.cs
- MailBnfHelper.cs
- UnauthorizedAccessException.cs
- CalendarTable.cs
- AsymmetricSignatureFormatter.cs
- BinaryReader.cs
- Math.cs
- CodeSnippetExpression.cs
- StrongNamePublicKeyBlob.cs
- Matrix.cs
- AddingNewEventArgs.cs
- XPathScanner.cs
- FontUnit.cs
- XamlStream.cs
- DataGridViewCellStateChangedEventArgs.cs
- TextParagraph.cs
- IisTraceWebEventProvider.cs
- StrongBox.cs
- Error.cs
- UrlPropertyAttribute.cs
- AutomationPatternInfo.cs
- Menu.cs
- IriParsingElement.cs
- XmlILCommand.cs
- SqlParameterCollection.cs
- ConfigurationElementCollection.cs
- DataGridViewColumn.cs
- NativeMethods.cs
- HtmlInputImage.cs
- WinEventWrap.cs
- CallSiteHelpers.cs
- ServerValidateEventArgs.cs
- ElementFactory.cs
- HostUtils.cs
- SoapExtensionReflector.cs
- Condition.cs
- TypeAccessException.cs
- DropShadowEffect.cs
- Config.cs
- PreviewPrintController.cs
- ColorTranslator.cs
- EventManager.cs
- BindingExpressionUncommonField.cs
- TogglePatternIdentifiers.cs
- CodeEntryPointMethod.cs
- Timeline.cs
- BuildResult.cs
- PointLightBase.cs
- WindowsStatusBar.cs
- GraphicsContext.cs
- XmlSchemaProviderAttribute.cs
- TcpTransportSecurity.cs
- SqlInfoMessageEvent.cs
- StrokeNodeOperations.cs