Code:
/ FX-1434 / FX-1434 / 1.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
- Point.cs
- KeyboardEventArgs.cs
- IsolatedStorageFile.cs
- PrintPreviewDialog.cs
- util.cs
- RsaKeyIdentifierClause.cs
- ChildrenQuery.cs
- ValueType.cs
- Int32.cs
- Size3D.cs
- MbpInfo.cs
- GeometryDrawing.cs
- XhtmlBasicFormAdapter.cs
- CharacterHit.cs
- _AutoWebProxyScriptEngine.cs
- DataGridViewRowPostPaintEventArgs.cs
- XmlCollation.cs
- SelectionWordBreaker.cs
- SafeNativeMethods.cs
- XmlSchemaObjectCollection.cs
- LOSFormatter.cs
- ToolStripContentPanelDesigner.cs
- TransportSecurityHelpers.cs
- MobileControl.cs
- ItemPager.cs
- SspiHelper.cs
- TextPenaltyModule.cs
- IPipelineRuntime.cs
- _NtlmClient.cs
- ProviderConnectionPointCollection.cs
- FormViewUpdateEventArgs.cs
- ImmutablePropertyDescriptorGridEntry.cs
- MatchAttribute.cs
- oledbmetadatacolumnnames.cs
- _LocalDataStoreMgr.cs
- PerformanceCounterLib.cs
- XmlSchemaComplexContent.cs
- ElapsedEventArgs.cs
- WebPartPersonalization.cs
- ContentType.cs
- BaseInfoTable.cs
- AdornerDecorator.cs
- XmlILAnnotation.cs
- WindowVisualStateTracker.cs
- HttpConfigurationContext.cs
- SoapMessage.cs
- CallInfo.cs
- CodeMemberEvent.cs
- UniqueEventHelper.cs
- ToolStripContainerDesigner.cs
- WebPartMovingEventArgs.cs
- WindowsHyperlink.cs
- RegexNode.cs
- NumericUpDown.cs
- MessagePartProtectionMode.cs
- EntityDesignerUtils.cs
- ViewStateModeByIdAttribute.cs
- Font.cs
- BackStopAuthenticationModule.cs
- SequenceDesignerAccessibleObject.cs
- NotifyInputEventArgs.cs
- Literal.cs
- ServiceDeploymentInfo.cs
- HtmlDocument.cs
- HttpListenerElement.cs
- GlyphsSerializer.cs
- MaskedTextBoxDesignerActionList.cs
- WindowsRebar.cs
- DataSetUtil.cs
- RequestResizeEvent.cs
- TypeConverterMarkupExtension.cs
- WSHttpBindingBaseElement.cs
- TextTreeTextNode.cs
- Propagator.cs
- _RequestCacheProtocol.cs
- DeviceContext2.cs
- XsdDateTime.cs
- AutomationEventArgs.cs
- RenderOptions.cs
- SymbolDocumentGenerator.cs
- OutputCacheProviderCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CommonRemoteMemoryBlock.cs
- ColorInterpolationModeValidation.cs
- WebPartCancelEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DataSourceHelper.cs
- URLAttribute.cs
- GcHandle.cs
- DynamicPhysicalDiscoSearcher.cs
- ping.cs
- ActivatableWorkflowsQueryResult.cs
- PictureBox.cs
- BackgroundWorker.cs
- ExpressionBinding.cs
- TrackingProfileSerializer.cs
- RegexGroupCollection.cs
- Figure.cs
- FullTextLine.cs
- ConnectionProviderAttribute.cs