using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace MonoGame.FourEngine.Extensions
{
    internal static class DictionaryExt
    {
        public static IReadOnlyDictionary<TKey, TValue> ToReadOnly<TKey, TValue>(this IDictionary<TKey, TValue> dictionary)
            => new ReadOnlyDictionary<TKey, TValue>(dictionary);
    }
}