-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKVEntry.cs
50 lines (42 loc) · 1.23 KB
/
KVEntry.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* ***********************************************
* Copyright (c) 2009-2010 luoshasha. All rights reserved";
* CLR version: 4.0.30319.296"
* File name: KVEntry.cs"
* Date: 12/5/2012 11:53:49 AM
* Author : luoshasha(sand)
* Email : [email protected]
* Description:
* History: created by luoshasha(sand) 12/5/2012 11:53:49 AM
* ***********************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SandLib.Util
{
public class KVEntry : Entry
{
private string _key;
private string _value;
public readonly static KVEntry EmptyEntry = new KVEntry(string.Empty, string.Empty);
public KVEntry(string key, string value)
: base(EntryType.KeyValue)
{
_key = key;
_value = value;
}
public string Key
{
get { return _key; }
}
public string Value
{
get { return _value; }
set { _value = value; }
}
public override string GetEntryLines()
{
return string.Format("{0}={1}", _key, _value);
}
}
}