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
- HwndProxyElementProvider.cs
- RC2.cs
- SystemResourceHost.cs
- Message.cs
- BinaryObjectReader.cs
- DeploymentExceptionMapper.cs
- ColorConverter.cs
- NumericExpr.cs
- ExceptionUtil.cs
- EnumConverter.cs
- RotateTransform.cs
- RsaKeyIdentifierClause.cs
- TreeViewItem.cs
- CrossAppDomainChannel.cs
- SocketCache.cs
- CompareValidator.cs
- RefreshEventArgs.cs
- DelegateBodyWriter.cs
- ParameterCollection.cs
- StringUtil.cs
- IPAddress.cs
- CodeTypeReferenceCollection.cs
- ReferencedCollectionType.cs
- SystemUdpStatistics.cs
- CodeCompileUnit.cs
- HMACMD5.cs
- AuthStoreRoleProvider.cs
- GenerateScriptTypeAttribute.cs
- ProcessModuleCollection.cs
- XamlStream.cs
- TreeNodeCollectionEditor.cs
- JpegBitmapEncoder.cs
- InputElement.cs
- ResolveNameEventArgs.cs
- UriWriter.cs
- DynamicResourceExtension.cs
- SortedSetDebugView.cs
- RequestCache.cs
- StylusShape.cs
- XslTransform.cs
- IgnoreSectionHandler.cs
- ObjectTag.cs
- FixedSOMElement.cs
- webbrowsersite.cs
- ProfileModule.cs
- RandomNumberGenerator.cs
- DetailsView.cs
- OdbcEnvironment.cs
- BuildResultCache.cs
- RectAnimationBase.cs
- OraclePermission.cs
- QueueProcessor.cs
- ActionNotSupportedException.cs
- DictationGrammar.cs
- BindingGroup.cs
- ToolStripSeparator.cs
- DefaultEventAttribute.cs
- _NestedMultipleAsyncResult.cs
- ItemContainerGenerator.cs
- FilteredXmlReader.cs
- ElasticEase.cs
- XmlNamespaceManager.cs
- DBProviderConfigurationHandler.cs
- BitVector32.cs
- ScrollItemProviderWrapper.cs
- ImageMetadata.cs
- DragDrop.cs
- SafeCancelMibChangeNotify.cs
- HitTestParameters.cs
- Wizard.cs
- Util.cs
- ToggleProviderWrapper.cs
- WorkflowRuntimeServicesBehavior.cs
- ReferencedCollectionType.cs
- TableRowGroupCollection.cs
- RowBinding.cs
- BaseCollection.cs
- EFAssociationProvider.cs
- ExpressionStringBuilder.cs
- AdapterUtil.cs
- XsdDuration.cs
- Pen.cs
- SqlTriggerContext.cs
- Module.cs
- PerformanceCounterPermissionEntry.cs
- Suspend.cs
- SynchronizedInputHelper.cs
- cryptoapiTransform.cs
- RuntimeConfigurationRecord.cs
- FileDialogCustomPlace.cs
- CheckBox.cs
- DesignerListAdapter.cs
- ToolStripSystemRenderer.cs
- TraceEventCache.cs
- EncodingTable.cs
- OAVariantLib.cs
- PolicyManager.cs
- SelectionGlyphBase.cs
- _ListenerAsyncResult.cs
- ImmutablePropertyDescriptorGridEntry.cs