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
- WpfSharedBamlSchemaContext.cs
- MailSettingsSection.cs
- SequentialOutput.cs
- TitleStyle.cs
- CriticalFinalizerObject.cs
- LocalIdKeyIdentifierClause.cs
- AppSecurityManager.cs
- ListViewHitTestInfo.cs
- HttpRequest.cs
- XmlSchemaAll.cs
- CompilerInfo.cs
- CharacterHit.cs
- ConfigUtil.cs
- DisposableCollectionWrapper.cs
- TextElement.cs
- SerializationException.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SBCSCodePageEncoding.cs
- LinkedList.cs
- SByteStorage.cs
- BitmapEffectInput.cs
- StartFileNameEditor.cs
- bindurihelper.cs
- DateTimeFormat.cs
- HostProtectionException.cs
- PathFigure.cs
- BinarySerializer.cs
- SqlProfileProvider.cs
- PropertyItem.cs
- EditorAttributeInfo.cs
- DefaultPropertyAttribute.cs
- ExpandableObjectConverter.cs
- WebBrowserSiteBase.cs
- ObjectStateManagerMetadata.cs
- AttachmentService.cs
- Quad.cs
- UpdatePanelControlTrigger.cs
- CustomErrorsSectionWrapper.cs
- XmlDocumentSurrogate.cs
- CodeGeneratorOptions.cs
- InfiniteTimeSpanConverter.cs
- MessageContractImporter.cs
- TrackingRecord.cs
- EntityException.cs
- CustomSignedXml.cs
- JsonWriter.cs
- Message.cs
- PerfService.cs
- AutoGeneratedField.cs
- CaseStatement.cs
- MatrixTransform3D.cs
- StyleHelper.cs
- RegionInfo.cs
- DbReferenceCollection.cs
- InputLanguageCollection.cs
- TypeViewSchema.cs
- SmiTypedGetterSetter.cs
- SmiXetterAccessMap.cs
- RegistryPermission.cs
- Dump.cs
- DataGridItemCollection.cs
- InputElement.cs
- FocusWithinProperty.cs
- SecurityException.cs
- Adorner.cs
- ToolStripButton.cs
- CatalogPartChrome.cs
- TypefaceMetricsCache.cs
- securitycriticaldataformultiplegetandset.cs
- TextServicesCompartmentEventSink.cs
- ComponentResourceKey.cs
- NonVisualControlAttribute.cs
- IERequestCache.cs
- JsonFormatWriterGenerator.cs
- Array.cs
- EDesignUtil.cs
- KeyInfo.cs
- ObjectListDesigner.cs
- PackagePart.cs
- MiniConstructorInfo.cs
- SrgsElementFactory.cs
- WorkflowDurableInstance.cs
- PageCanvasSize.cs
- XmlAtomicValue.cs
- FunctionQuery.cs
- Interlocked.cs
- PeerService.cs
- ElementAction.cs
- RoutedPropertyChangedEventArgs.cs
- MatrixUtil.cs
- GraphicsState.cs
- ComEventsHelper.cs
- AnonymousIdentificationModule.cs
- InputReportEventArgs.cs
- LocatorBase.cs
- DrawingServices.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ProfilePropertySettingsCollection.cs
- ReadWriteControlDesigner.cs
- ImageSource.cs