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
- TypeConverters.cs
- PopupEventArgs.cs
- ComEventsSink.cs
- WindowsListViewSubItem.cs
- CodePageEncoding.cs
- DefaultTypeArgumentAttribute.cs
- EntityViewGenerationAttribute.cs
- UserControl.cs
- PingReply.cs
- CryptoKeySecurity.cs
- ProfileSettingsCollection.cs
- ValueProviderWrapper.cs
- HandlerBase.cs
- ItemMap.cs
- RootBrowserWindow.cs
- AssemblyNameProxy.cs
- RecognizedWordUnit.cs
- RecognizedAudio.cs
- ImageMapEventArgs.cs
- ConfigXmlElement.cs
- PrePrepareMethodAttribute.cs
- SweepDirectionValidation.cs
- ValidationRuleCollection.cs
- CompensateDesigner.cs
- ComponentRenameEvent.cs
- TabPage.cs
- TagPrefixInfo.cs
- CanonicalXml.cs
- Stackframe.cs
- TemplatePagerField.cs
- DBConnection.cs
- PlatformCulture.cs
- ValidatorCollection.cs
- CodeSnippetExpression.cs
- EmptyControlCollection.cs
- EventLogPermissionEntryCollection.cs
- Stopwatch.cs
- DecimalFormatter.cs
- ResourcePermissionBase.cs
- DecoderBestFitFallback.cs
- SocketInformation.cs
- MouseEvent.cs
- SqlIdentifier.cs
- NetworkCredential.cs
- CombinedTcpChannel.cs
- ToolStripRendererSwitcher.cs
- WindowsSolidBrush.cs
- NativeRecognizer.cs
- XmlSchemaSimpleTypeUnion.cs
- FileClassifier.cs
- VisualBrush.cs
- GeometryCollection.cs
- DataGridRow.cs
- DropDownList.cs
- CheckBoxStandardAdapter.cs
- RtfFormatStack.cs
- ErrorProvider.cs
- Figure.cs
- wgx_exports.cs
- ControlEvent.cs
- ContextStack.cs
- COSERVERINFO.cs
- CodeVariableReferenceExpression.cs
- CreateUserWizard.cs
- Geometry3D.cs
- grammarelement.cs
- MatrixCamera.cs
- SqlEnums.cs
- ExternalException.cs
- CodeObjectCreateExpression.cs
- DbParameterHelper.cs
- KnownBoxes.cs
- EntitySqlQueryState.cs
- XmlQueryType.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- _OverlappedAsyncResult.cs
- _ChunkParse.cs
- TableRowCollection.cs
- ContentIterators.cs
- ToolStripGripRenderEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- UpdateException.cs
- DetailsViewRow.cs
- WebPartConnectVerb.cs
- ContextMarshalException.cs
- WmlObjectListAdapter.cs
- ExpressionSelection.cs
- UInt64.cs
- XmlNodeList.cs
- XmlEncoding.cs
- MatrixTransform.cs
- SQLBinaryStorage.cs
- path.cs
- ExtensionQuery.cs
- DataControlCommands.cs
- TdsParserSafeHandles.cs
- ColumnResizeAdorner.cs
- EncoderParameter.cs
- XmlValidatingReader.cs
- BinaryObjectWriter.cs