1 //------------------------------------------------------------------------------
2 // <copyright file="NameValuePair.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //------------------------------------------------------------------------------
10 namespace System.Data.EntityClient
13 /// Copied from System.Data.dll
15 sealed internal class NameValuePair {
16 readonly private string _name;
17 readonly private string _value;
18 readonly private int _length;
19 private NameValuePair _next;
21 internal NameValuePair(string name, string value, int length) {
22 System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(name), "empty keyname");
28 internal NameValuePair Next {
33 if ((null != _next) || (null == value)) {
34 throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.NameValuePairNext);