Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Common / NameValuePair.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BufferModeSettings.cs
- DesignerUtils.cs
- QueryStringParameter.cs
- ReadOnlyPropertyMetadata.cs
- WebConfigurationHost.cs
- PointAnimationBase.cs
- Regex.cs
- XmlNodeWriter.cs
- DataKeyCollection.cs
- StrongBox.cs
- WebServiceClientProxyGenerator.cs
- AsyncOperationManager.cs
- sortedlist.cs
- AssertSection.cs
- PermissionListSet.cs
- TypeConverterAttribute.cs
- CredentialSelector.cs
- StrongNameIdentityPermission.cs
- BrowserCapabilitiesFactoryBase.cs
- ConsumerConnectionPointCollection.cs
- NotifyInputEventArgs.cs
- CSharpCodeProvider.cs
- ContentPlaceHolder.cs
- DefaultPrintController.cs
- CalendarData.cs
- SamlAssertionKeyIdentifierClause.cs
- DBCSCodePageEncoding.cs
- BamlStream.cs
- ProviderConnectionPoint.cs
- GridViewRowPresenter.cs
- HandoffBehavior.cs
- NetworkStream.cs
- RpcCryptoRequest.cs
- _LocalDataStore.cs
- InteropAutomationProvider.cs
- Scene3D.cs
- ProviderConnectionPointCollection.cs
- Parameter.cs
- DefaultPrintController.cs
- AmbientProperties.cs
- Point3DCollectionValueSerializer.cs
- CorrelationManager.cs
- XNodeValidator.cs
- PathSegmentCollection.cs
- DirtyTextRange.cs
- ReadWriteObjectLock.cs
- BitmapEditor.cs
- ItemAutomationPeer.cs
- ComponentResourceManager.cs
- SqlProfileProvider.cs
- XmlDataLoader.cs
- BrowserCapabilitiesCodeGenerator.cs
- ValueHandle.cs
- TemplateInstanceAttribute.cs
- OptimalTextSource.cs
- WindowsListViewGroupHelper.cs
- ButtonRenderer.cs
- AttachmentCollection.cs
- KeyInfo.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CorrelationToken.cs
- WebReferenceCollection.cs
- RadioButtonDesigner.cs
- ExchangeUtilities.cs
- FontFamilyConverter.cs
- Win32SafeHandles.cs
- GAC.cs
- DataKeyCollection.cs
- ServicePointManager.cs
- ServiceDiscoveryBehavior.cs
- WindowsUpDown.cs
- DocumentPageHost.cs
- _SSPIWrapper.cs
- TextElementEditingBehaviorAttribute.cs
- DateTimeSerializationSection.cs
- UriExt.cs
- SafeEventLogReadHandle.cs
- LocalizableResourceBuilder.cs
- Point3DKeyFrameCollection.cs
- SortKey.cs
- UriScheme.cs
- TranslateTransform3D.cs
- DataSourceGeneratorException.cs
- SerializationSectionGroup.cs
- DataBoundControlDesigner.cs
- NumberSubstitution.cs
- XamlClipboardData.cs
- PasswordTextContainer.cs
- ProfileEventArgs.cs
- CombinedGeometry.cs
- OrderByQueryOptionExpression.cs
- HierarchicalDataSourceControl.cs
- BooleanProjectedSlot.cs
- OdbcParameterCollection.cs
- InkCollectionBehavior.cs
- CryptoConfig.cs
- xml.cs
- TabControlCancelEvent.cs
- EntityConnection.cs
- ISAPIWorkerRequest.cs