I am using dot42 with vs2010. i tried to get the list of fields for a class. i got 0 element in the list of fields.
Does dot42 support reflection?
any example or help will be appreciated.
best regards
I am using dot42 with vs2010. i tried to get the list of fields for a class. i got 0 element in the list of fields.
Does dot42 support reflection?
any example or help will be appreciated.
best regards
here is an example of what i am doing:
public class Class1
{
public int publicInt;
private string privateString;
public string Value { get; set; }
public void Method1()
{
throw new NotImplementedException();
}
}
I have anthor class with generic method:
public class Class2
{
public void GenericMethod<T>() where T : new()
{
Type entityType = typeof(T);
//Here, i want to get the FieldInfo list of T.
//typeof(T) does not work also.
}
}
In the MainActivity, when i click on a button i have:
Class2 c2 = new Class2();
c2.GenericMethod<Class1>();