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
- ModelVisual3D.cs
- CheckPair.cs
- BindingList.cs
- HttpCacheVary.cs
- ProvideValueServiceProvider.cs
- ConstraintEnumerator.cs
- AutoGeneratedFieldProperties.cs
- TreeNodeStyleCollection.cs
- Block.cs
- MeshGeometry3D.cs
- TreeIterator.cs
- WebBrowserHelper.cs
- TextUtf8RawTextWriter.cs
- ServiceBuildProvider.cs
- SHA1Cng.cs
- Component.cs
- RoleGroupCollection.cs
- codemethodreferenceexpression.cs
- basenumberconverter.cs
- EventLogLink.cs
- OutputCacheSettingsSection.cs
- SqlBulkCopyColumnMapping.cs
- PageRanges.cs
- ZipPackage.cs
- TableLayoutPanelDesigner.cs
- View.cs
- PropertyGridCommands.cs
- Track.cs
- IgnoreDataMemberAttribute.cs
- WindowsBrush.cs
- HttpDebugHandler.cs
- SqlDataSourceCommandEventArgs.cs
- ConfigXmlWhitespace.cs
- LifetimeServices.cs
- DBConnectionString.cs
- TypeHelper.cs
- TextTreeFixupNode.cs
- ToolStripItemRenderEventArgs.cs
- PartialTrustHelpers.cs
- ObjectViewFactory.cs
- WindowVisualStateTracker.cs
- FieldNameLookup.cs
- MaterializeFromAtom.cs
- RouteParametersHelper.cs
- StringUtil.cs
- SqlConnection.cs
- Win32Native.cs
- QilLoop.cs
- ItemMap.cs
- EntityClientCacheEntry.cs
- WindowsStartMenu.cs
- XmlImplementation.cs
- ProjectedSlot.cs
- AssertValidation.cs
- VirtualizingPanel.cs
- Validator.cs
- ModulesEntry.cs
- AssemblyBuilder.cs
- CryptoConfig.cs
- QueryableDataSourceEditData.cs
- XPathPatternParser.cs
- TemplateBaseAction.cs
- TrustLevel.cs
- NameValueCollection.cs
- Point4DConverter.cs
- Attributes.cs
- mediapermission.cs
- DataBoundControlAdapter.cs
- Int32Rect.cs
- HttpStreamXmlDictionaryReader.cs
- SafeEventHandle.cs
- ClientBuildManagerCallback.cs
- SchemaNames.cs
- XmlSignificantWhitespace.cs
- SqlProfileProvider.cs
- EntityParameter.cs
- ConsoleKeyInfo.cs
- CommandSet.cs
- WebDescriptionAttribute.cs
- BasicHttpMessageSecurity.cs
- Stopwatch.cs
- HtmlInputPassword.cs
- BevelBitmapEffect.cs
- DataTemplateSelector.cs
- InstancePersistenceCommandException.cs
- TableItemPattern.cs
- XmlCharType.cs
- RegionInfo.cs
- FormViewUpdateEventArgs.cs
- WebBrowser.cs
- EntryIndex.cs
- DocumentOrderComparer.cs
- HtmlMeta.cs
- IriParsingElement.cs
- EncryptedHeaderXml.cs
- TextAction.cs
- XmlSerializerNamespaces.cs
- sqlstateclientmanager.cs
- TextEffect.cs
- CompositeCollection.cs