Microsoft.Xna.Framework.Graphics.Effect.LoadEffectResource C# (CSharp) Method

LoadEffectResource() static private method

static private LoadEffectResource ( string name ) : byte[]
name string
return byte[]
        internal static byte[] LoadEffectResource(string name)
        {
#if WINRT
            var assembly = typeof(Effect).GetTypeInfo().Assembly;
#else
            var assembly = typeof(Effect).Assembly;
#endif
            var stream = assembly.GetManifestResourceStream(name);
            using (var ms = new MemoryStream())
            {
                stream.CopyTo(ms);
                return ms.ToArray();
            }
        }