.NET: Type.Parse not working?
Posted
by Rosarch
on Stack Overflow
See other posts from Stack Overflow
or by Rosarch
Published on 2010-04-02T01:07:53Z
Indexed on
2010/04/02
1:13 UTC
Read the original article
Hit count: 459
What am I doing wrong?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Box2D.XNA;
//...
Type.Parse("GameObjectModel");
Compilation error:
'System.Type' does not contain a definition for 'Parse'
I am trying to get the type of a class name from a string, so I can instantiate an instance of that class.
© Stack Overflow or respective owner