添加项目文件。
This commit is contained in:
1 parent
54c7b83029
commit
ef50fa0620
84 files changed
+9188
No files matched your search
@@ -0,0 +1,34 @@
|
||||
using System.Text;
|
||||
|
||||
namespace MAX.Framework.Commons;
|
||||
|
||||
public struct KeyValue
|
||||
{
|
||||
public KeyValue(string key, string value)
|
||||
{
|
||||
Key = key;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new();
|
||||
stringBuilder.Append('[');
|
||||
if (Key != null)
|
||||
{
|
||||
stringBuilder.Append(Key.ToString());
|
||||
}
|
||||
|
||||
stringBuilder.Append(", ");
|
||||
if (Value != null)
|
||||
{
|
||||
stringBuilder.Append(Value.ToString());
|
||||
}
|
||||
|
||||
stringBuilder.Append(']');
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user