string typeExpression = "System.String"; Type type = TypeExpression.Parse(typeExpression);
string typeExpression = "System.Collections.Generic.List`1[System.String]"; TypeReference typeReference = TypeExpression.GetTypeReference(typeExpression);In this example, we are creating a type reference to the generic type List