You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
CaselessDictionary made serializable. New FileContentsCacheType for enabling simple lookup and caching of file contents. Fix for module references differing in case from module definitions e.g. Http and HTTP. Some general refactoring. #codereview robert.manuszewski [CL 2581357 by Steve Robb in Main branch]
37 lines
856 B
C#
37 lines
856 B
C#
// Copyright 1998-2015 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)
|
|
{
|
|
}
|
|
}
|
|
}
|