Its works fine to me, try this:
public class TypeTest
{
public string mimimi { get; set; }
}
Type t = typeof(TypeTest);
dynamic instanceTypeTeste = Activator.CreateInstance(t);
instanceTipoTeste.mimimi = "test";
Possible problems in your code:
- To change the value, property and class needs be
Public
- The correct sintax, because the property name is Case Sensitive
- When you load a type, look if is the correct Type of your class