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
- BufferBuilder.cs
- TimeSpanValidatorAttribute.cs
- AdjustableArrowCap.cs
- EntityDataSourceWrapperCollection.cs
- FlowDocumentPaginator.cs
- XamlInt32CollectionSerializer.cs
- DataGridViewAdvancedBorderStyle.cs
- ListSortDescription.cs
- DbConnectionPoolCounters.cs
- ProviderBase.cs
- TextRangeEditLists.cs
- MgmtConfigurationRecord.cs
- PrintDialogDesigner.cs
- Pts.cs
- GeneralTransformCollection.cs
- Relationship.cs
- Figure.cs
- UnsafeNativeMethods.cs
- FusionWrap.cs
- PropertyPathConverter.cs
- ThreadAttributes.cs
- DataGridPagerStyle.cs
- AlphabeticalEnumConverter.cs
- Soap.cs
- ContractMapping.cs
- PointValueSerializer.cs
- TypeInfo.cs
- DirectoryObjectSecurity.cs
- PageEventArgs.cs
- TypeResolvingOptionsAttribute.cs
- SymLanguageType.cs
- FontStretch.cs
- RoleGroupCollection.cs
- FixedSchema.cs
- infer.cs
- EventProperty.cs
- ProviderCommandInfoUtils.cs
- ListViewEditEventArgs.cs
- SQLInt32Storage.cs
- ImportDesigner.xaml.cs
- GridViewColumn.cs
- RegistryConfigurationProvider.cs
- MachinePropertyVariants.cs
- XmlILOptimizerVisitor.cs
- HttpVersion.cs
- IconHelper.cs
- CompilationUnit.cs
- PixelShader.cs
- RunInstallerAttribute.cs
- Select.cs
- NativeWindow.cs
- StringCollection.cs
- IImplicitResourceProvider.cs
- StartUpEventArgs.cs
- UnsafeNativeMethodsPenimc.cs
- StorageConditionPropertyMapping.cs
- WebPartCloseVerb.cs
- PackageDocument.cs
- DataGrid.cs
- TaskbarItemInfo.cs
- AnnotationService.cs
- WindowsSspiNegotiation.cs
- CodeNamespaceImport.cs
- HostUtils.cs
- TraceHandler.cs
- peersecuritysettings.cs
- dbenumerator.cs
- DataGridViewRowsAddedEventArgs.cs
- Brush.cs
- PropertyChangeTracker.cs
- DrawingImage.cs
- WSDualHttpSecurityMode.cs
- RSAOAEPKeyExchangeDeformatter.cs
- FullTextBreakpoint.cs
- ScrollItemPatternIdentifiers.cs
- MeshGeometry3D.cs
- PerspectiveCamera.cs
- AlternationConverter.cs
- validationstate.cs
- BitmapEffectInput.cs
- HttpContextServiceHost.cs
- ZipIOModeEnforcingStream.cs
- PackageDigitalSignatureManager.cs
- TaiwanCalendar.cs
- FormViewActionList.cs
- SystemUnicastIPAddressInformation.cs
- MessageRpc.cs
- PageSetupDialog.cs
- Vector3dCollection.cs
- StringTraceRecord.cs
- ProjectionNode.cs
- DataGridViewCellStyle.cs
- CapabilitiesSection.cs
- EntityDataSourceEntitySetNameItem.cs
- BooleanExpr.cs
- RestHandler.cs
- ObjectSelectorEditor.cs
- MasterPageCodeDomTreeGenerator.cs
- StateItem.cs
- OverflowException.cs