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
- SqlServer2KCompatibilityAnnotation.cs
- ListBindingHelper.cs
- XamlVector3DCollectionSerializer.cs
- GroupBox.cs
- DirectionalLight.cs
- ChannelFactoryBase.cs
- AsyncInvokeOperation.cs
- MetadataConversionError.cs
- ObjectDisposedException.cs
- AttachedPropertyBrowsableAttribute.cs
- TextSchema.cs
- ResourceCategoryAttribute.cs
- HttpResponseWrapper.cs
- EncryptionUtility.cs
- ColorKeyFrameCollection.cs
- XmlILOptimizerVisitor.cs
- SelectionItemPattern.cs
- SecurityKeyIdentifier.cs
- FlowDocument.cs
- ManagementOptions.cs
- WhitespaceRuleLookup.cs
- WebDisplayNameAttribute.cs
- OdbcTransaction.cs
- InfoCardListRequest.cs
- ResourcePermissionBaseEntry.cs
- basecomparevalidator.cs
- PackageDigitalSignatureManager.cs
- DBSqlParserColumnCollection.cs
- Rfc2898DeriveBytes.cs
- DbConnectionOptions.cs
- ShutDownListener.cs
- PathSegment.cs
- LinqDataSourceSelectEventArgs.cs
- ListMarkerLine.cs
- DictionaryChange.cs
- linebase.cs
- EventlogProvider.cs
- Assembly.cs
- QilXmlWriter.cs
- ToolStripScrollButton.cs
- HwndHost.cs
- TextParagraphProperties.cs
- SqlConnectionManager.cs
- odbcmetadatacolumnnames.cs
- FixedDocumentSequencePaginator.cs
- WindowsNonControl.cs
- XmlCharCheckingWriter.cs
- DataTableNewRowEvent.cs
- URIFormatException.cs
- ProvidersHelper.cs
- TabOrder.cs
- DataSourceConverter.cs
- DtrList.cs
- FieldBuilder.cs
- XmlHelper.cs
- DataSvcMapFile.cs
- LoginViewDesigner.cs
- TextBoxBase.cs
- StagingAreaInputItem.cs
- RoleService.cs
- DocumentPageHost.cs
- ThreadAttributes.cs
- InlinedAggregationOperatorEnumerator.cs
- GlyphCache.cs
- WebHttpBehavior.cs
- ServiceInfo.cs
- ContextMarshalException.cs
- SqlCachedBuffer.cs
- DataGridViewColumnConverter.cs
- WebBrowserProgressChangedEventHandler.cs
- Automation.cs
- EffectiveValueEntry.cs
- SingleKeyFrameCollection.cs
- CancelEventArgs.cs
- WorkflowServiceAttributesTypeConverter.cs
- ProfilePropertySettings.cs
- WebBrowserNavigatingEventHandler.cs
- ClientBuildManagerCallback.cs
- TypeSource.cs
- TransactedBatchingBehavior.cs
- TraceEventCache.cs
- GcHandle.cs
- GridViewDeleteEventArgs.cs
- _ChunkParse.cs
- PhysicalAddress.cs
- TextTreeNode.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RoleGroup.cs
- MSAANativeProvider.cs
- PostBackTrigger.cs
- SapiAttributeParser.cs
- GradientStop.cs
- newitemfactory.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DateTimeParse.cs
- XamlInt32CollectionSerializer.cs
- WebPartManager.cs
- SamlAuthenticationStatement.cs
- DataTableCollection.cs
- ByteRangeDownloader.cs