Code:
/ DotNET / DotNET / 8.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
- Int32RectConverter.cs
- String.cs
- BaseParaClient.cs
- WmfPlaceableFileHeader.cs
- DrawingGroup.cs
- NumericUpDownAccelerationCollection.cs
- SqlNodeAnnotations.cs
- CompileXomlTask.cs
- DocumentXPathNavigator.cs
- ConnectorRouter.cs
- Menu.cs
- GCHandleCookieTable.cs
- ThumbButtonInfo.cs
- NewExpression.cs
- LicenseProviderAttribute.cs
- UnsettableComboBox.cs
- ObjectQuery_EntitySqlExtensions.cs
- CodeTypeMemberCollection.cs
- AccessedThroughPropertyAttribute.cs
- TextElementCollection.cs
- ScrollEvent.cs
- SelectorItemAutomationPeer.cs
- FormParameter.cs
- HostProtectionPermission.cs
- DataGridViewRowEventArgs.cs
- TraceContextEventArgs.cs
- SchemaName.cs
- SqlProviderServices.cs
- XmlAttributeOverrides.cs
- RectAnimation.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ServiceOperation.cs
- SystemUdpStatistics.cs
- RemotingHelper.cs
- PartialCachingAttribute.cs
- ExpressionConverter.cs
- safex509handles.cs
- OleDbConnectionFactory.cs
- SlipBehavior.cs
- IndexedString.cs
- AutomationIdentifierGuids.cs
- ScriptingWebServicesSectionGroup.cs
- VectorAnimationBase.cs
- EntityClientCacheEntry.cs
- SqlNodeAnnotation.cs
- CorrelationActionMessageFilter.cs
- ServiceActivationException.cs
- SafeArrayRankMismatchException.cs
- SimpleHandlerFactory.cs
- PointAnimationUsingKeyFrames.cs
- BaseParaClient.cs
- SqlNotificationEventArgs.cs
- ByteFacetDescriptionElement.cs
- TypeSystemProvider.cs
- AnnotationDocumentPaginator.cs
- Page.cs
- SqlDuplicator.cs
- WaitHandleCannotBeOpenedException.cs
- DataObjectSettingDataEventArgs.cs
- SelectedPathEditor.cs
- SafePEFileHandle.cs
- TabControlAutomationPeer.cs
- DeviceContexts.cs
- PropertyPathConverter.cs
- Keyboard.cs
- WorkflowServiceBehavior.cs
- ScriptingRoleServiceSection.cs
- ManagementObject.cs
- PermissionSet.cs
- TextDecorations.cs
- CorrelationValidator.cs
- MulticastIPAddressInformationCollection.cs
- RuntimeComponentFilter.cs
- RegexParser.cs
- SiteOfOriginContainer.cs
- TypeDescriptionProviderAttribute.cs
- SqlIdentifier.cs
- UTF7Encoding.cs
- ContentPlaceHolder.cs
- SimpleTypeResolver.cs
- SmtpFailedRecipientException.cs
- SizeAnimationBase.cs
- SequentialWorkflowHeaderFooter.cs
- EdmEntityTypeAttribute.cs
- ConnectionManagementElement.cs
- TemplateInstanceAttribute.cs
- ObjectHandle.cs
- TheQuery.cs
- DictionaryKeyPropertyAttribute.cs
- CategoryEditor.cs
- SmiConnection.cs
- TextCharacters.cs
- ClientBuildManagerCallback.cs
- MSAAEventDispatcher.cs
- RestHandlerFactory.cs
- Converter.cs
- CanExecuteRoutedEventArgs.cs
- WindowsTreeView.cs
- ResourceAssociationSet.cs
- DataGridDefaultColumnWidthTypeConverter.cs