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
- IriParsingElement.cs
- XmlQueryCardinality.cs
- ReadWriteSpinLock.cs
- PiiTraceSource.cs
- RectangleGeometry.cs
- PasswordRecoveryAutoFormat.cs
- CompoundFileStreamReference.cs
- CustomAttributeSerializer.cs
- ToolboxComponentsCreatedEventArgs.cs
- ComEventsSink.cs
- SecurityPermission.cs
- CodeDirectionExpression.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- FieldNameLookup.cs
- Track.cs
- versioninfo.cs
- NameScopePropertyAttribute.cs
- XmlSchemaRedefine.cs
- InputLanguageEventArgs.cs
- InternalDispatchObject.cs
- IsolatedStoragePermission.cs
- InvalidCommandTreeException.cs
- Label.cs
- WindowsFormsSynchronizationContext.cs
- FontDifferentiator.cs
- FormatControl.cs
- precedingsibling.cs
- KnownBoxes.cs
- MergablePropertyAttribute.cs
- UserControlFileEditor.cs
- DetailsViewRow.cs
- LocationReference.cs
- DocumentGridContextMenu.cs
- ButtonFieldBase.cs
- SecurityHeaderTokenResolver.cs
- NamespaceDecl.cs
- TextChangedEventArgs.cs
- UntypedNullExpression.cs
- XmlException.cs
- ToolbarAUtomationPeer.cs
- SpeakCompletedEventArgs.cs
- CmsUtils.cs
- QilReplaceVisitor.cs
- Condition.cs
- GenericWebPart.cs
- NameScope.cs
- TypeElement.cs
- Rotation3D.cs
- MsmqInputChannelListener.cs
- ClaimSet.cs
- ColorConverter.cs
- StaticSiteMapProvider.cs
- MSHTMLHost.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DiagnosticsConfiguration.cs
- ChangeTracker.cs
- ServiceHttpModule.cs
- EnumValAlphaComparer.cs
- SchemaConstraints.cs
- MissingMethodException.cs
- DebugControllerThread.cs
- TextTreeDeleteContentUndoUnit.cs
- CodeTypeReferenceExpression.cs
- CompositeDataBoundControl.cs
- LinkAreaEditor.cs
- MatrixTransform3D.cs
- QfeChecker.cs
- MultipleCopiesCollection.cs
- DiscardableAttribute.cs
- ProgramNode.cs
- FontStretchConverter.cs
- ServiceMetadataPublishingElement.cs
- FileDialog_Vista_Interop.cs
- XmlQueryOutput.cs
- SqlWebEventProvider.cs
- ApplicationSecurityInfo.cs
- DispatcherExceptionEventArgs.cs
- RightsManagementEncryptedStream.cs
- XmlSchemaExternal.cs
- GridSplitterAutomationPeer.cs
- ParserStack.cs
- ViewBox.cs
- StylusPointCollection.cs
- Quaternion.cs
- UriGenerator.cs
- OdbcEnvironmentHandle.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- OrderedParallelQuery.cs
- WebEncodingValidatorAttribute.cs
- PassportPrincipal.cs
- RelatedPropertyManager.cs
- MemberDescriptor.cs
- SharedPersonalizationStateInfo.cs
- DynamicPropertyHolder.cs
- PartialCachingControl.cs
- SerializationTrace.cs
- SqlMetaData.cs
- IgnoreDeviceFilterElementCollection.cs
- SettingsPropertyWrongTypeException.cs
- BuildProviderUtils.cs