ARCed.Controls.IconCache.CacheTexture C# (CSharp) Метод

CacheTexture() приватный статический Метод

private static CacheTexture ( string key ) : Microsoft.Xna.Framework.Graphics.Texture2D
key string
Результат Microsoft.Xna.Framework.Graphics.Texture2D
        private static Texture2D CacheTexture(string key)
        {
            if (_cache.ContainsKey(key))
                return _cache[key];
            _cache[key] = GetBitmap(key).ToTexture(GraphicsDevice);
            return _cache[key];
        }