title: device.drawuserprimitive asking for explicit type
body: <p>hi im trying to get my code working, its to draw a primitive cube in xna.</p>
  
  <p>i keep getting an error</p>
  
  <blockquote>
    <p>Error 1   The type arguments for method 'Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawUserPrimitives(Microsoft.Xna.Framework.Graphics.PrimitiveType, T[], int, int)' cannot be inferred from the usage. Try specifying the type arguments explicitly.   </p>
  </blockquote>
  
  <pre><code>public void RenderShape(GraphicsDevice device, Effect effect)
      {
          BuildShape();
  
          foreach (EffectPass pass in effect.CurrentTechnique.Passes)
          {
              effect.Parameters["xTexture"].SetValue(topTexture);
              pass.Apply();
              device.DrawUserPrimitives&lt;VertexPositionNormalTexture&gt;(PrimitiveType.TriangleList, shapeVertices[2], 0, 2);
  
              effect.Parameters["xTexture"].SetValue(bottomTexture);
              pass.Apply();
              device.DrawUserPrimitives&lt;VertexPositionNormalTexture&gt;(PrimitiveType.TriangleList, shapeVertices[3], 0, 2);
  
              effect.Parameters["xTexture"].SetValue(frontTexture);
              pass.Apply();
              device.DrawUserPrimitives&lt;VertexPositionNormalTexture&gt;(PrimitiveType.TriangleList, shapeVertices[0], 0, 2);
  
              effect.Parameters["xTexture"].SetValue(backTexture);
              pass.Apply();
              device.DrawUserPrimitives&lt;VertexPositionNormalTexture&gt;(PrimitiveType.TriangleList, shapeVertices[1], 0, 2);
  
              effect.Parameters["xTexture"].SetValue(leftTexture);
              pass.Apply();
              device.DrawUserPrimitives&lt;VertexPositionNormalTexture&gt;(PrimitiveType.TriangleList, shapeVertices[4], 0, 2);
  
              effect.Parameters["xTexture"].SetValue(rightTexture);
              pass.Apply();
              device.DrawUserPrimitives&lt;VertexPositionNormalTexture&gt;(PrimitiveType.TriangleList, shapeVertices[5], 0, 2);
          }
  
      }
  </code></pre>
  
  <p>i thought adding the  was defining the type explicitly....but apparently not.</p>