Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / Common / NameValuePair.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmtpNtlmAuthenticationModule.cs
- FormViewUpdateEventArgs.cs
- ViewCellRelation.cs
- ColumnHeader.cs
- StrokeNodeOperations2.cs
- StatusBarItemAutomationPeer.cs
- TextEncodedRawTextWriter.cs
- TextBox.cs
- WriterOutput.cs
- HtmlInputRadioButton.cs
- ChangeInterceptorAttribute.cs
- TextLine.cs
- XmlArrayAttribute.cs
- DictionaryEntry.cs
- WebControlsSection.cs
- Control.cs
- HtmlTernaryTree.cs
- SymLanguageType.cs
- ImpersonationContext.cs
- documentsequencetextcontainer.cs
- ParameterCollectionEditorForm.cs
- DeobfuscatingStream.cs
- ItemList.cs
- SessionMode.cs
- Utility.cs
- QilXmlWriter.cs
- _SslStream.cs
- StaticContext.cs
- SerializationInfo.cs
- Mapping.cs
- XmlElementList.cs
- TimeSpanValidator.cs
- FragmentQuery.cs
- PreservationFileWriter.cs
- BrushConverter.cs
- OrderedDictionary.cs
- HebrewCalendar.cs
- InkSerializer.cs
- DetailsViewPagerRow.cs
- EntityDataSourceDesigner.cs
- TemplateControl.cs
- BooleanAnimationBase.cs
- ServiceModelExtensionElement.cs
- JsonWriter.cs
- ConfigurationFileMap.cs
- PreviousTrackingServiceAttribute.cs
- DataControlPagerLinkButton.cs
- Calendar.cs
- ServiceHostingEnvironment.cs
- DataReceivedEventArgs.cs
- StylusCaptureWithinProperty.cs
- Authorization.cs
- _NestedMultipleAsyncResult.cs
- Schema.cs
- NullableConverter.cs
- MessageSmuggler.cs
- HostExecutionContextManager.cs
- XmlElementList.cs
- SettingsSavedEventArgs.cs
- HttpListener.cs
- TypedElement.cs
- PageCodeDomTreeGenerator.cs
- DataIdProcessor.cs
- TextSerializer.cs
- DodSequenceMerge.cs
- WindowsListViewItemStartMenu.cs
- XappLauncher.cs
- xml.cs
- OpenFileDialog.cs
- Stack.cs
- Converter.cs
- FullTrustAssembly.cs
- DocumentPageViewAutomationPeer.cs
- ToolTipService.cs
- ListBoxChrome.cs
- ToolStripPanelRow.cs
- IfJoinedCondition.cs
- CodeTypeMember.cs
- DynamicExpression.cs
- Point4D.cs
- StreamInfo.cs
- UseLicense.cs
- Soap.cs
- URLIdentityPermission.cs
- WsdlBuildProvider.cs
- RequestValidator.cs
- Stacktrace.cs
- _LocalDataStoreMgr.cs
- DiscoveryProxy.cs
- TemplateGroupCollection.cs
- SizeConverter.cs
- AsyncResult.cs
- MetadataArtifactLoaderComposite.cs
- DynamicMetaObjectBinder.cs
- IList.cs
- XmlSchemaValidationException.cs
- SiteMapNodeCollection.cs
- TextFormatterHost.cs
- PanelDesigner.cs
- WsdlImporterElement.cs