private static NoiseTextures GetNoiseTextures(IGraphicsService graphicsService) { const string key = "__NoiseTextures"; object textures; if (!graphicsService.Data.TryGetValue(key, out textures) || !(textures is NoiseTextures)) { textures = new NoiseTextures(); graphicsService.Data[key] = textures; } return((NoiseTextures)textures); }
private static NoiseTextures GetNoiseTextures(IGraphicsService graphicsService) { const string key = "__NoiseTextures"; object textures; if (!graphicsService.Data.TryGetValue(key, out textures) || !(textures is NoiseTextures)) { textures = new NoiseTextures(); graphicsService.Data[key] = textures; } return (NoiseTextures)textures; }