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
- RepeatButtonAutomationPeer.cs
- MetaModel.cs
- BinaryFormatterSinks.cs
- PropertiesTab.cs
- TextFormatterContext.cs
- ElementProxy.cs
- Color.cs
- Inflater.cs
- LinkUtilities.cs
- StringResourceManager.cs
- DataServiceException.cs
- CompositeControl.cs
- TextEditorTables.cs
- FileDataSourceCache.cs
- BinaryObjectWriter.cs
- DesignerUtils.cs
- PreviewKeyDownEventArgs.cs
- ToolBarTray.cs
- DataRowChangeEvent.cs
- ViewValidator.cs
- ExceptionHelpers.cs
- _Rfc2616CacheValidators.cs
- RequestSecurityTokenResponse.cs
- MouseActionValueSerializer.cs
- smtpconnection.cs
- dataprotectionpermission.cs
- XmlSerializerNamespaces.cs
- XamlWrapperReaders.cs
- BrowserInteropHelper.cs
- UnsupportedPolicyOptionsException.cs
- XmlSchemaChoice.cs
- VisualStateManager.cs
- SerializeAbsoluteContext.cs
- ClientBuildManagerCallback.cs
- Type.cs
- SecurityBindingElement.cs
- MDIClient.cs
- PenContexts.cs
- PrinterResolution.cs
- StylusPointPropertyUnit.cs
- UrlMappingCollection.cs
- SHA384Managed.cs
- CompilationRelaxations.cs
- ActivityBuilderHelper.cs
- CriticalHandle.cs
- GetCertificateRequest.cs
- SettingsBindableAttribute.cs
- HttpServerVarsCollection.cs
- ClipboardProcessor.cs
- OdbcStatementHandle.cs
- DataGridViewLayoutData.cs
- ForceCopyBuildProvider.cs
- CryptoHelper.cs
- DataGridViewSortCompareEventArgs.cs
- webeventbuffer.cs
- ResolvedKeyFrameEntry.cs
- RuntimeConfigurationRecord.cs
- StrokeSerializer.cs
- QilFunction.cs
- GradientBrush.cs
- Menu.cs
- InlineUIContainer.cs
- HierarchicalDataTemplate.cs
- AutomationElementCollection.cs
- StringComparer.cs
- DataGridViewBand.cs
- TextContainer.cs
- TraceSection.cs
- Walker.cs
- PageFunction.cs
- GridViewCommandEventArgs.cs
- OdbcCommand.cs
- Message.cs
- ISAPIRuntime.cs
- PrinterSettings.cs
- ServerIdentity.cs
- ProfileProvider.cs
- PassportIdentity.cs
- SignatureResourceHelper.cs
- OleDbParameter.cs
- PrtTicket_Public.cs
- SQLMoney.cs
- DoubleLink.cs
- HttpRawResponse.cs
- CodeGeneratorOptions.cs
- DataSourceHelper.cs
- WebPartDescriptionCollection.cs
- HtmlMobileTextWriter.cs
- Visual3D.cs
- EventSetter.cs
- HandleRef.cs
- CodeTypeReferenceCollection.cs
- AssignDesigner.xaml.cs
- XamlToRtfParser.cs
- PackageRelationshipCollection.cs
- ToggleButton.cs
- RuntimeCompatibilityAttribute.cs
- ExpressionVisitorHelpers.cs
- Documentation.cs
- HtmlDocument.cs