mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54:09 +02:00
KeyValuePair is unnecessary
This commit is contained in:
parent
7b1f1b2bd1
commit
513949568c
1 changed files with 0 additions and 45 deletions
|
@ -1,45 +0,0 @@
|
||||||
namespace System.Collections
|
|
||||||
{
|
|
||||||
public struct KeyValuePair<TKey, TValue>
|
|
||||||
{
|
|
||||||
private TKey mKey;
|
|
||||||
private TValue mValue;
|
|
||||||
|
|
||||||
public this(TKey key, TValue value)
|
|
||||||
{
|
|
||||||
this.mKey = key;
|
|
||||||
this.mValue = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TKey Key
|
|
||||||
{
|
|
||||||
get { return mKey; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public TValue Value
|
|
||||||
{
|
|
||||||
get { return mValue; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void ToString(String strOut)
|
|
||||||
{
|
|
||||||
strOut.Append('[');
|
|
||||||
if (Key != null)
|
|
||||||
{
|
|
||||||
Key.ToString(strOut);
|
|
||||||
}
|
|
||||||
strOut.Append(", ");
|
|
||||||
if (Value != null)
|
|
||||||
{
|
|
||||||
Value.ToString(strOut);
|
|
||||||
}
|
|
||||||
strOut.Append(']');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace System.Collections.Generic
|
|
||||||
{
|
|
||||||
[Obsolete("The System.Collections.Generic types have been moved into System.Collections", false)]
|
|
||||||
typealias KeyValuePair<TKey, TValue> = System.Collections.KeyValuePair<TKey, TValue>;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue