Microsoft.Xna.Framework.Graphics.SpriteBatch.CheckValid C# (CSharp) Method

CheckValid() private method

private CheckValid ( SpriteFont spriteFont, StringBuilder text ) : void
spriteFont SpriteFont
text StringBuilder
return void
        void CheckValid(SpriteFont spriteFont, StringBuilder text)
        {
            if (spriteFont == null)
                throw new ArgumentNullException("spriteFont");
            if (text == null)
                throw new ArgumentNullException("text");
            if (!_beginCalled)
                throw new InvalidOperationException("DrawString was called, but Begin has not yet been called. Begin must be called successfully before you can call DrawString.");
        }

Same methods

SpriteBatch::CheckValid ( SpriteFont spriteFont, string text ) : void
SpriteBatch::CheckValid ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void