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
- DataGridViewButtonColumn.cs
- xmlglyphRunInfo.cs
- ListViewInsertEventArgs.cs
- ServiceModelEnumValidator.cs
- RenderOptions.cs
- StreamInfo.cs
- PtsHelper.cs
- MexBindingElement.cs
- ConfigurationStrings.cs
- DBSqlParser.cs
- IList.cs
- PropertyMapper.cs
- BitStream.cs
- IItemProperties.cs
- ReadOnlyCollectionBase.cs
- TablePattern.cs
- Decoder.cs
- StylusTouchDevice.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Psha1DerivedKeyGenerator.cs
- AssemblyCache.cs
- XmlHierarchicalDataSourceView.cs
- BufferBuilder.cs
- X509Certificate2Collection.cs
- DocumentViewerBase.cs
- Compilation.cs
- DrawingVisual.cs
- Light.cs
- TextTreeObjectNode.cs
- TimeSpan.cs
- SerializationHelper.cs
- FamilyTypeface.cs
- PolicyException.cs
- ElementsClipboardData.cs
- MarkupExtensionSerializer.cs
- ToolStripOverflow.cs
- OleDbEnumerator.cs
- VectorValueSerializer.cs
- Tablet.cs
- AxHost.cs
- Win32PrintDialog.cs
- DataExchangeServiceBinder.cs
- XpsSerializerWriter.cs
- SectionInformation.cs
- PartialCachingAttribute.cs
- BulletedListEventArgs.cs
- FaultDescriptionCollection.cs
- PerspectiveCamera.cs
- __TransparentProxy.cs
- ApplicationProxyInternal.cs
- ConfigXmlText.cs
- ObjectMemberMapping.cs
- PageParserFilter.cs
- ContextStaticAttribute.cs
- GridViewRowEventArgs.cs
- WindowsStartMenu.cs
- HtmlPageAdapter.cs
- XmlIncludeAttribute.cs
- ContentWrapperAttribute.cs
- UseLicense.cs
- AttributeCollection.cs
- PropertyInformation.cs
- StorageScalarPropertyMapping.cs
- comcontractssection.cs
- Nullable.cs
- ErrorFormatter.cs
- ThreadAttributes.cs
- Message.cs
- MailAddressParser.cs
- SqlError.cs
- RTLAwareMessageBox.cs
- RepeatInfo.cs
- EdmSchemaAttribute.cs
- TdsParserSafeHandles.cs
- xdrvalidator.cs
- DefaultAssemblyResolver.cs
- WebPartTransformerCollection.cs
- XmlAnyAttributeAttribute.cs
- TargetControlTypeAttribute.cs
- ExceptionUtil.cs
- SystemIPGlobalStatistics.cs
- CommandField.cs
- OpenFileDialog.cs
- FieldAccessException.cs
- DataBoundLiteralControl.cs
- MsmqBindingElementBase.cs
- BackgroundWorker.cs
- ClosureBinding.cs
- ScrollBar.cs
- ParentUndoUnit.cs
- DetailsViewRow.cs
- DBCSCodePageEncoding.cs
- FastPropertyAccessor.cs
- ListViewItem.cs
- validationstate.cs
- DrawingImage.cs
- XmlNamespaceDeclarationsAttribute.cs
- MouseCaptureWithinProperty.cs
- LinqDataSource.cs
- SafeIUnknown.cs