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
- BufferedWebEventProvider.cs
- NativeMethods.cs
- ObjectAssociationEndMapping.cs
- MarkupExtensionReturnTypeAttribute.cs
- ComplexType.cs
- WebPartConnectionCollection.cs
- followingquery.cs
- SymbolEqualComparer.cs
- DesignerVerb.cs
- Identity.cs
- AuthenticationService.cs
- SchemaTypeEmitter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- PeerNameResolver.cs
- VerificationAttribute.cs
- SqlTransaction.cs
- DataRecordObjectView.cs
- PersonalizationStateInfoCollection.cs
- HybridObjectCache.cs
- ToolboxComponentsCreatedEventArgs.cs
- XamlSerializationHelper.cs
- SettingsAttributes.cs
- TreeNodeStyle.cs
- NavigationExpr.cs
- DispatcherExceptionEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- TrackBarDesigner.cs
- CodePageUtils.cs
- SmiEventSink.cs
- CodeDirectionExpression.cs
- XmlEnumAttribute.cs
- SchemeSettingElement.cs
- JournalEntryListConverter.cs
- Unit.cs
- RestHandler.cs
- FreezableOperations.cs
- ConsoleTraceListener.cs
- PropertyGridView.cs
- SocketPermission.cs
- ClientSponsor.cs
- sqlinternaltransaction.cs
- CodePageUtils.cs
- CipherData.cs
- CachedBitmap.cs
- AuthenticatingEventArgs.cs
- ResourceExpression.cs
- FtpWebResponse.cs
- ActivityBuilder.cs
- WebPart.cs
- DbParameterCollection.cs
- TextBoxBase.cs
- RuleValidation.cs
- BaseHashHelper.cs
- WaitForChangedResult.cs
- VirtualPathProvider.cs
- SqlDataSourceCommandEventArgs.cs
- WMIInterop.cs
- ValueUtilsSmi.cs
- newinstructionaction.cs
- XamlTypeMapper.cs
- LoadRetryStrategyFactory.cs
- HierarchicalDataTemplate.cs
- ClientScriptManager.cs
- InheritedPropertyChangedEventArgs.cs
- JoinSymbol.cs
- XmlStreamedByteStreamReader.cs
- followingquery.cs
- TagPrefixAttribute.cs
- BrushValueSerializer.cs
- PrePostDescendentsWalker.cs
- Msmq4PoisonHandler.cs
- DataGridParentRows.cs
- TriState.cs
- SafeProcessHandle.cs
- MailSettingsSection.cs
- FullTextState.cs
- TableStyle.cs
- altserialization.cs
- LinearGradientBrush.cs
- BufferedOutputAsyncStream.cs
- SafeHandles.cs
- OleDbSchemaGuid.cs
- ValidatorUtils.cs
- HtmlTableCellCollection.cs
- SharedStatics.cs
- ChannelSinkStacks.cs
- CompilerState.cs
- CommandBinding.cs
- ToolStripManager.cs
- MessagePropertyDescriptionCollection.cs
- InstalledFontCollection.cs
- Match.cs
- HttpApplicationStateBase.cs
- TableRow.cs
- DiagnosticTrace.cs
- ExpressionNormalizer.cs
- Trace.cs
- UTF8Encoding.cs
- MsmqPoisonMessageException.cs