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
- SqlUdtInfo.cs
- WindowsGraphics.cs
- PackageRelationshipSelector.cs
- XmlDocument.cs
- WindowsFormsLinkLabel.cs
- WorkflowRuntimeServiceElementCollection.cs
- MimeTypePropertyAttribute.cs
- StateValidator.cs
- AsymmetricSignatureFormatter.cs
- ApplicationActivator.cs
- Point3DAnimationBase.cs
- SecurityDocument.cs
- StringExpressionSet.cs
- PackagePart.cs
- VirtualizedItemProviderWrapper.cs
- IdentifierCollection.cs
- ColorAnimationUsingKeyFrames.cs
- SqlServer2KCompatibilityCheck.cs
- BaseTemplateBuildProvider.cs
- EntityCommandExecutionException.cs
- NamespaceList.cs
- IPGlobalProperties.cs
- MsdtcWrapper.cs
- WebPartRestoreVerb.cs
- ServiceModelInstallComponent.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PropertyReference.cs
- XsdCachingReader.cs
- EdmFunction.cs
- XmlElement.cs
- TextPointer.cs
- Scripts.cs
- AssemblyBuilder.cs
- FactoryGenerator.cs
- AddInStore.cs
- UnicastIPAddressInformationCollection.cs
- UiaCoreTypesApi.cs
- MetadataHelper.cs
- SymbolEqualComparer.cs
- CodeConstructor.cs
- followingsibling.cs
- MsmqChannelFactory.cs
- SystemDiagnosticsSection.cs
- HTTPNotFoundHandler.cs
- PeerConnector.cs
- COM2ComponentEditor.cs
- XmlSerializableWriter.cs
- ExpressionParser.cs
- DrawingAttributeSerializer.cs
- Stackframe.cs
- UiaCoreTypesApi.cs
- GridErrorDlg.cs
- LocalizationComments.cs
- ObfuscateAssemblyAttribute.cs
- PropertyMapper.cs
- FontDialog.cs
- ISFClipboardData.cs
- MultiDataTrigger.cs
- SmiXetterAccessMap.cs
- DataSourceCache.cs
- ServiceSettingsResponseInfo.cs
- ApplicationFileParser.cs
- CurrencyManager.cs
- WebPartTransformer.cs
- InputDevice.cs
- WeakReference.cs
- InvalidOleVariantTypeException.cs
- SynchronizedDispatch.cs
- UITypeEditor.cs
- WindowsRebar.cs
- SigningCredentials.cs
- HtmlInputFile.cs
- HtmlToClrEventProxy.cs
- shaperfactoryquerycacheentry.cs
- PtsPage.cs
- SystemInfo.cs
- RadioButton.cs
- ValidationErrorCollection.cs
- AuthenticationConfig.cs
- XmlWhitespace.cs
- SelectionItemProviderWrapper.cs
- EventsTab.cs
- Interop.cs
- GridViewDeletedEventArgs.cs
- BaseResourcesBuildProvider.cs
- ScriptReference.cs
- InputLanguageManager.cs
- XmlComplianceUtil.cs
- BuildProvidersCompiler.cs
- DatagridviewDisplayedBandsData.cs
- StateMachineHelpers.cs
- BrushValueSerializer.cs
- XsdDuration.cs
- InputScopeConverter.cs
- ISessionStateStore.cs
- PersonalizationStateInfo.cs
- WebRequestModuleElement.cs
- TransformerInfoCollection.cs
- TaskHelper.cs
- PkcsUtils.cs