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
- StrongName.cs
- PropertyRecord.cs
- HttpApplication.cs
- Configuration.cs
- PropertyPath.cs
- IHttpResponseInternal.cs
- CorrelationManager.cs
- StringCollection.cs
- PointAnimationUsingKeyFrames.cs
- ConfigurationSectionCollection.cs
- ScriptReference.cs
- ScriptingScriptResourceHandlerSection.cs
- _TLSstream.cs
- TileModeValidation.cs
- AsyncPostBackTrigger.cs
- ReadWriteSpinLock.cs
- EventProviderTraceListener.cs
- ComponentConverter.cs
- TraceContextEventArgs.cs
- CommandLibraryHelper.cs
- ProtocolsConfiguration.cs
- IndexerHelper.cs
- HostProtectionPermission.cs
- _SingleItemRequestCache.cs
- Parser.cs
- XmlHierarchyData.cs
- InstanceCompleteException.cs
- VariableQuery.cs
- NativeMethods.cs
- KnowledgeBase.cs
- ArgumentException.cs
- XmlIgnoreAttribute.cs
- XmlLanguageConverter.cs
- XmlObjectSerializerReadContextComplexJson.cs
- NativeMethods.cs
- AssemblyBuilder.cs
- DesignerActionUIService.cs
- SimpleTextLine.cs
- RawStylusActions.cs
- PocoEntityKeyStrategy.cs
- HostedElements.cs
- BlockCollection.cs
- SafeLibraryHandle.cs
- ResourceKey.cs
- SqlUtil.cs
- Italic.cs
- ServiceProviders.cs
- KerberosRequestorSecurityToken.cs
- SerializationHelper.cs
- Brush.cs
- ImageListStreamer.cs
- CommonRemoteMemoryBlock.cs
- GridViewRowCollection.cs
- SqlLiftWhereClauses.cs
- List.cs
- SourceLineInfo.cs
- ellipse.cs
- SspiSafeHandles.cs
- ComNativeDescriptor.cs
- Privilege.cs
- HttpGetProtocolImporter.cs
- XhtmlConformanceSection.cs
- Activity.cs
- ArgumentException.cs
- PeerNodeTraceRecord.cs
- SqlNodeAnnotations.cs
- MonthCalendarDesigner.cs
- CodeMemberField.cs
- SessionParameter.cs
- DetailsViewRow.cs
- KeyboardNavigation.cs
- XmlValueConverter.cs
- ToolStripContainer.cs
- BufferedStream.cs
- SimpleWorkerRequest.cs
- SolidColorBrush.cs
- CachedTypeface.cs
- PageDeviceFont.cs
- ConnectionAcceptor.cs
- SBCSCodePageEncoding.cs
- SHA512.cs
- GeneralTransform3DGroup.cs
- WebPartEditorApplyVerb.cs
- MeasureItemEvent.cs
- ContainerVisual.cs
- TableRow.cs
- NavigatorInput.cs
- FilteredDataSetHelper.cs
- CultureTableRecord.cs
- InstallerTypeAttribute.cs
- DataContractSerializer.cs
- ProfileSection.cs
- CustomGrammar.cs
- XNodeValidator.cs
- DataGridViewCellFormattingEventArgs.cs
- SecurityKeyIdentifier.cs
- ScriptResourceAttribute.cs
- SecurityCriticalDataForSet.cs
- Drawing.cs
- FrameworkContentElement.cs