You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
37 lines
856 B
C#
37 lines
856 B
C#
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Tools.DotNETCommon.CaselessDictionary
|
|
{
|
|
/// <summary>
|
|
/// Equivalent of case insensitive Dictionary<string, T>
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
[Serializable]
|
|
public class CaselessDictionary<T> : Dictionary<string, T>
|
|
{
|
|
public CaselessDictionary()
|
|
: base(StringComparer.InvariantCultureIgnoreCase)
|
|
{
|
|
}
|
|
|
|
public CaselessDictionary(int Capacity)
|
|
: base(Capacity, StringComparer.InvariantCultureIgnoreCase)
|
|
{
|
|
}
|
|
|
|
public CaselessDictionary(IDictionary<string, T> Dict)
|
|
: base(Dict, StringComparer.InvariantCultureIgnoreCase)
|
|
{
|
|
}
|
|
|
|
protected CaselessDictionary(SerializationInfo Info, StreamingContext Context)
|
|
: base(Info, Context)
|
|
{
|
|
}
|
|
}
|
|
}
|