You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixing up of existing code which used these facilities - this fixes the 'You are attempting to compile on a machine that does not have a supported compiler!' UAT error on machines with really long PATH variables, and exceptions in envvars with non-ASCII characters. #codereview robert.manuszewski [CL 2572445 by Steve Robb in Main branch]
30 lines
689 B
C#
30 lines
689 B
C#
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Tools.DotNETCommon.CaselessDictionary
|
|
{
|
|
/// <summary>
|
|
/// Equivalent of case insensitive Dictionary<string, T>
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
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)
|
|
{
|
|
}
|
|
}
|
|
}
|