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
- ObfuscateAssemblyAttribute.cs
- CodeExpressionStatement.cs
- CompilerGeneratedAttribute.cs
- PackageDigitalSignatureManager.cs
- SpStreamWrapper.cs
- Scene3D.cs
- BindingOperations.cs
- SelectionPatternIdentifiers.cs
- MediaSystem.cs
- ReflectionHelper.cs
- ExtensibleClassFactory.cs
- JsonEnumDataContract.cs
- FileSystemEnumerable.cs
- Helpers.cs
- ComponentSerializationService.cs
- _AcceptOverlappedAsyncResult.cs
- SafeNativeMethods.cs
- SettingsBase.cs
- SerializationInfoEnumerator.cs
- TypeReference.cs
- Knowncolors.cs
- NativeCppClassAttribute.cs
- TextRunProperties.cs
- DBSqlParserColumnCollection.cs
- SystemKeyConverter.cs
- mda.cs
- xml.cs
- ExtenderProvidedPropertyAttribute.cs
- webeventbuffer.cs
- URLAttribute.cs
- DrawingContextWalker.cs
- _ContextAwareResult.cs
- BlurEffect.cs
- TabControlToolboxItem.cs
- XmlEventCache.cs
- DataSourceGroupCollection.cs
- XdrBuilder.cs
- InvalidChannelBindingException.cs
- ClientUrlResolverWrapper.cs
- TextAutomationPeer.cs
- LayoutEvent.cs
- GlyphShapingProperties.cs
- DateTimeOffsetConverter.cs
- ISessionStateStore.cs
- DataErrorValidationRule.cs
- StylusButton.cs
- SqlNotificationRequest.cs
- AsmxEndpointPickerExtension.cs
- ClosableStream.cs
- ChannelHandler.cs
- EndpointInfo.cs
- NativeMethods.cs
- Clipboard.cs
- RepeatButton.cs
- URI.cs
- FileUtil.cs
- NetCodeGroup.cs
- DrawListViewColumnHeaderEventArgs.cs
- DefaultAsyncDataDispatcher.cs
- TemplateControlCodeDomTreeGenerator.cs
- ValueChangedEventManager.cs
- DataGridRow.cs
- xmlfixedPageInfo.cs
- SqlResolver.cs
- ConstructorNeedsTagAttribute.cs
- CFStream.cs
- ScriptingScriptResourceHandlerSection.cs
- ObjectView.cs
- WebRequestModuleElementCollection.cs
- ExpressionBindings.cs
- ToolboxItemAttribute.cs
- RegexGroupCollection.cs
- LicenseProviderAttribute.cs
- UInt64.cs
- DesignerCategoryAttribute.cs
- XmlDictionaryWriter.cs
- AnonymousIdentificationModule.cs
- XmlSchemaChoice.cs
- LookupBindingPropertiesAttribute.cs
- SqlConnectionHelper.cs
- EntityViewGenerationConstants.cs
- Point4D.cs
- DirectoryInfo.cs
- ServicePointManager.cs
- ExpandCollapsePattern.cs
- WindowsGraphics2.cs
- Constants.cs
- MimePart.cs
- Item.cs
- XmlEntity.cs
- AuthenticationService.cs
- WebConvert.cs
- DecimalAnimationBase.cs
- ProcessModelInfo.cs
- RecordConverter.cs
- SiteMapNodeItemEventArgs.cs
- QilStrConcatenator.cs
- ListViewGroupConverter.cs
- Pkcs9Attribute.cs
- CustomAttributeBuilder.cs