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
- DefaultObjectMappingItemCollection.cs
- FunctionDetailsReader.cs
- SelectedCellsCollection.cs
- SizeAnimationClockResource.cs
- Rotation3D.cs
- _DisconnectOverlappedAsyncResult.cs
- DoubleCollection.cs
- Visual3DCollection.cs
- DocumentsTrace.cs
- SafeBitVector32.cs
- TempFiles.cs
- HttpCachePolicyBase.cs
- MatrixTransform3D.cs
- StrongNameMembershipCondition.cs
- LinkClickEvent.cs
- SelectionPattern.cs
- ObjectSecurityT.cs
- JavaScriptObjectDeserializer.cs
- TrustManagerMoreInformation.cs
- ContentPlaceHolder.cs
- EventWaitHandleSecurity.cs
- EntityCommandDefinition.cs
- EllipseGeometry.cs
- Authorization.cs
- SerializationUtility.cs
- Rect.cs
- HelpEvent.cs
- SoapTypeAttribute.cs
- HostingEnvironmentException.cs
- GlyphsSerializer.cs
- DrawingState.cs
- KeyGestureValueSerializer.cs
- TextView.cs
- BitmapEffectDrawing.cs
- TdsEnums.cs
- SecurityProtocolCorrelationState.cs
- OdbcDataAdapter.cs
- SchemaTableOptionalColumn.cs
- Typeface.cs
- MonikerHelper.cs
- MulticastIPAddressInformationCollection.cs
- StreamSecurityUpgradeAcceptorBase.cs
- Internal.cs
- ContentElement.cs
- Axis.cs
- HttpClientChannel.cs
- DeadCharTextComposition.cs
- HtmlGenericControl.cs
- StdValidatorsAndConverters.cs
- ButtonPopupAdapter.cs
- HttpWrapper.cs
- Crypto.cs
- ReadingWritingEntityEventArgs.cs
- NativeObjectSecurity.cs
- CodeDOMProvider.cs
- LinkButton.cs
- WebPartCatalogAddVerb.cs
- CodeArrayCreateExpression.cs
- DecimalFormatter.cs
- XmlRootAttribute.cs
- AccessDataSource.cs
- StrokeNodeOperations2.cs
- HopperCache.cs
- EdmSchemaAttribute.cs
- TableLayoutSettings.cs
- AudioLevelUpdatedEventArgs.cs
- DesignerGeometryHelper.cs
- StorageEntitySetMapping.cs
- HostProtectionException.cs
- datacache.cs
- FileCodeGroup.cs
- TranslateTransform.cs
- HwndMouseInputProvider.cs
- UnsafeNetInfoNativeMethods.cs
- ContextStaticAttribute.cs
- ReturnEventArgs.cs
- DataBindingList.cs
- ListControlConvertEventArgs.cs
- RequestQueue.cs
- TransformerInfo.cs
- CollectionBuilder.cs
- QueryResponse.cs
- FormViewInsertedEventArgs.cs
- PrintPreviewControl.cs
- NotificationContext.cs
- EntityContainer.cs
- NullableDecimalAverageAggregationOperator.cs
- PingReply.cs
- RowsCopiedEventArgs.cs
- DataExpression.cs
- LicenseProviderAttribute.cs
- DataGridColumnReorderingEventArgs.cs
- SHA512CryptoServiceProvider.cs
- SafeEventLogWriteHandle.cs
- coordinator.cs
- OlePropertyStructs.cs
- ClientSettingsSection.cs
- TrailingSpaceComparer.cs
- RepeatInfo.cs
- MeasurementDCInfo.cs