Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / Common / NameValuePair.cs / 1 / NameValuePair.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- #if ORACLE namespace System.Data.OracleClient { #else namespace System.Data.Common { #endif using System; using System.Data.Common; using System.Diagnostics; using System.Runtime.Serialization; [Serializable] // MDAC 83147 sealed internal class NameValuePair { readonly private string _name; readonly private string _value; [OptionalField(VersionAdded=2)] readonly private int _length; private NameValuePair _next; internal NameValuePair(string name, string value, int length) { System.Diagnostics.Debug.Assert(!ADP.IsEmpty(name), "empty keyname"); _name = name; _value = value; _length = length; } internal int Length { get { // this property won't exist when deserialized from Everett to Whidbey // it shouldn't matter for DbConnectionString/DbDataPermission // which should only use Length during construction // not deserialization or post-ctor runtime Debug.Assert(0 < _length, "NameValuePair zero Length usage"); return _length; } } internal string Name { get { return _name; } } internal NameValuePair Next { get { return _next; } set { if ((null != _next) || (null == value)) { throw ADP.InternalError(ADP.InternalErrorCode.NameValuePairNext); } _next = value; } } internal string Value { get { return _value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UnsafeNativeMethods.cs
- WebBaseEventKeyComparer.cs
- WSFederationHttpBinding.cs
- RuntimeCompatibilityAttribute.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ISO2022Encoding.cs
- CannotUnloadAppDomainException.cs
- IBuiltInEvidence.cs
- CFStream.cs
- CommandBinding.cs
- IOThreadTimer.cs
- ClipboardProcessor.cs
- SectionUpdates.cs
- OptimizedTemplateContent.cs
- SqlGenerator.cs
- DataException.cs
- FilterFactory.cs
- XmlEntityReference.cs
- TypefaceMetricsCache.cs
- TransactionBehavior.cs
- XmlSchemaComplexContent.cs
- OutgoingWebRequestContext.cs
- FileFormatException.cs
- ReadOnlyDataSourceView.cs
- EventNotify.cs
- XmlQualifiedName.cs
- SqlLiftIndependentRowExpressions.cs
- ThreadStateException.cs
- DataGridViewRowsAddedEventArgs.cs
- HttpVersion.cs
- SQLMoney.cs
- IISUnsafeMethods.cs
- InteropBitmapSource.cs
- SchemaElementDecl.cs
- SecurityContext.cs
- IteratorFilter.cs
- DbCommandTree.cs
- CreateUserWizardStep.cs
- FilteredAttributeCollection.cs
- ClientSideProviderDescription.cs
- SoapElementAttribute.cs
- IxmlLineInfo.cs
- WrappedIUnknown.cs
- TextBoxBase.cs
- XmlChildEnumerator.cs
- XPathMessageFilterTable.cs
- OleDbException.cs
- RowUpdatingEventArgs.cs
- MailSettingsSection.cs
- ToolStripCollectionEditor.cs
- SelectedDatesCollection.cs
- SourceItem.cs
- TextPattern.cs
- EmbossBitmapEffect.cs
- Page.cs
- ImageCodecInfoPrivate.cs
- ColumnHeaderConverter.cs
- SecurityDescriptor.cs
- WebPartsSection.cs
- CounterSample.cs
- HttpListener.cs
- Storyboard.cs
- ConstraintManager.cs
- TransformCryptoHandle.cs
- PublisherIdentityPermission.cs
- AsyncPostBackErrorEventArgs.cs
- ProcessMonitor.cs
- GPPOINTF.cs
- TextTreeRootTextBlock.cs
- DiscoveryReference.cs
- DictionaryBase.cs
- ResourceProviderFactory.cs
- KeyEventArgs.cs
- DbException.cs
- ServiceHostFactory.cs
- ViewDesigner.cs
- ThemeableAttribute.cs
- UnitySerializationHolder.cs
- XmlNavigatorFilter.cs
- Transform.cs
- HeaderFilter.cs
- EditorZone.cs
- SvcMapFileLoader.cs
- DataServiceQuery.cs
- ListCollectionView.cs
- TdsParserSafeHandles.cs
- AnimatedTypeHelpers.cs
- QilInvoke.cs
- SafeSecurityHandles.cs
- RowVisual.cs
- DetectEofStream.cs
- SecurityElement.cs
- ColumnWidthChangingEvent.cs
- XmlDocumentType.cs
- CqlParser.cs
- MarginCollapsingState.cs
- Panel.cs
- ScaleTransform3D.cs
- SeparatorAutomationPeer.cs
- Unit.cs