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
- PolicyStatement.cs
- SQLMembershipProvider.cs
- CorrelationScope.cs
- TimerElapsedEvenArgs.cs
- ClientScriptManager.cs
- UnSafeCharBuffer.cs
- TextDecorations.cs
- Token.cs
- CustomLineCap.cs
- PreloadedPackages.cs
- TraceLog.cs
- AnnotationObservableCollection.cs
- CodeTypeParameter.cs
- TextBoxAutoCompleteSourceConverter.cs
- EntityViewContainer.cs
- CodeSubDirectoriesCollection.cs
- TextSimpleMarkerProperties.cs
- SoapAttributes.cs
- HtmlTable.cs
- Point4DValueSerializer.cs
- Internal.cs
- FileDialog_Vista_Interop.cs
- SafeMemoryMappedFileHandle.cs
- Baml2006ReaderFrame.cs
- SafeBitVector32.cs
- RuleConditionDialog.Designer.cs
- EntityDesignerUtils.cs
- ConnectionAcceptor.cs
- Pair.cs
- DataGridView.cs
- StateManagedCollection.cs
- LineUtil.cs
- UmAlQuraCalendar.cs
- BuildResultCache.cs
- TextEncodedRawTextWriter.cs
- BrowserTree.cs
- Opcode.cs
- ReflectionServiceProvider.cs
- CodeArrayIndexerExpression.cs
- BrowserCapabilitiesFactory.cs
- DispatcherExceptionEventArgs.cs
- SoapHttpTransportImporter.cs
- RemotingConfiguration.cs
- ArrayMergeHelper.cs
- MetabaseServerConfig.cs
- EventlogProvider.cs
- SubqueryRules.cs
- DataError.cs
- FieldDescriptor.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Parallel.cs
- BaseDataListComponentEditor.cs
- MultiDataTrigger.cs
- AgileSafeNativeMemoryHandle.cs
- ColumnMapCopier.cs
- HttpCookiesSection.cs
- CodeTryCatchFinallyStatement.cs
- TemplateControlParser.cs
- CharacterShapingProperties.cs
- WindowsIdentity.cs
- Panel.cs
- CommandManager.cs
- SqlFunctionAttribute.cs
- EntityDataSourceView.cs
- ListenerConfig.cs
- OracleLob.cs
- ValueOfAction.cs
- DynamicValidatorEventArgs.cs
- ViewBase.cs
- Journal.cs
- XomlCompiler.cs
- AlphaSortedEnumConverter.cs
- Viewport3DAutomationPeer.cs
- UnsafeNativeMethods.cs
- IPipelineRuntime.cs
- WebUtil.cs
- Slider.cs
- HtmlImage.cs
- CompensationDesigner.cs
- JsonEncodingStreamWrapper.cs
- SerializableAttribute.cs
- ColorPalette.cs
- CharEntityEncoderFallback.cs
- SmtpAuthenticationManager.cs
- SignatureResourcePool.cs
- DBAsyncResult.cs
- HtmlWindow.cs
- DocumentGrid.cs
- TextServicesLoader.cs
- ToolStripPanelDesigner.cs
- CompilerInfo.cs
- RequestQueryParser.cs
- _CommandStream.cs
- XamlFrame.cs
- RenderCapability.cs
- SymbolMethod.cs
- Constraint.cs
- ToolStripDropDownButton.cs
- TransactionContextValidator.cs
- RegistryKey.cs