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
- SurrogateEncoder.cs
- TableLayoutPanelCellPosition.cs
- TypeGeneratedEventArgs.cs
- errorpatternmatcher.cs
- AssemblyUtil.cs
- SerialStream.cs
- GC.cs
- PersonalizationStateInfo.cs
- SafeNativeMemoryHandle.cs
- MatrixConverter.cs
- ArrayEditor.cs
- Predicate.cs
- Brush.cs
- TypeDescriptor.cs
- DtrList.cs
- DeviceContexts.cs
- StrongNameIdentityPermission.cs
- Compilation.cs
- Int32Rect.cs
- TraceXPathNavigator.cs
- BinaryUtilClasses.cs
- LoadMessageLogger.cs
- MessageFormatterConverter.cs
- AssemblyEvidenceFactory.cs
- SocketAddress.cs
- DataPagerFieldCollection.cs
- ToolStripSeparator.cs
- SerialStream.cs
- PageAsyncTask.cs
- ChameleonKey.cs
- CollectionView.cs
- VisualStyleInformation.cs
- VolatileResourceManager.cs
- XmlDataSource.cs
- Native.cs
- SHA512Managed.cs
- ChtmlTextWriter.cs
- NativeWindow.cs
- PlainXmlDeserializer.cs
- ClrPerspective.cs
- _NetworkingPerfCounters.cs
- RegexReplacement.cs
- SelectorAutomationPeer.cs
- FilterableData.cs
- CompilerCollection.cs
- SettingsPropertyCollection.cs
- SafeMemoryMappedViewHandle.cs
- OutputScopeManager.cs
- TemplateBaseAction.cs
- OutOfProcStateClientManager.cs
- DtdParser.cs
- StyleSheetComponentEditor.cs
- SqlUDTStorage.cs
- XmlQueryType.cs
- WindowsServiceElement.cs
- FamilyTypeface.cs
- CachedPathData.cs
- QueryInterceptorAttribute.cs
- TextFormatterHost.cs
- ResourceKey.cs
- Literal.cs
- SqlBuilder.cs
- PagerSettings.cs
- XNameTypeConverter.cs
- SafeNativeMethods.cs
- XmlNullResolver.cs
- CacheHelper.cs
- Tag.cs
- ApplicationHost.cs
- TrackBar.cs
- AstNode.cs
- ImageAttributes.cs
- DLinqTableProvider.cs
- DataGridCellClipboardEventArgs.cs
- SecondaryIndexList.cs
- MessageBox.cs
- ApplyTemplatesAction.cs
- LambdaCompiler.Generated.cs
- MemberPathMap.cs
- TemplateField.cs
- ReturnType.cs
- FileDataSourceCache.cs
- GenerateHelper.cs
- MdiWindowListStrip.cs
- StateMachineSubscription.cs
- XmlAnyAttributeAttribute.cs
- StorageBasedPackageProperties.cs
- QilPatternVisitor.cs
- InvokeGenerator.cs
- QueryOperatorEnumerator.cs
- PairComparer.cs
- MutexSecurity.cs
- PropertyEmitterBase.cs
- TableLayoutPanelDesigner.cs
- RepeaterItem.cs
- Parsers.cs
- OdbcUtils.cs
- DataRelationPropertyDescriptor.cs
- ToolStripContainerDesigner.cs
- SaveFileDialog.cs