public class Base_all
{
static System.Reflection.FieldInfo fi;
public static void Set(object o,string var_name, string value)
{
fi = o.GetType().GetField(var_name, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public |
System.Reflection.BindingFlags.NonPublic| System.Reflection.BindingFlags.Instance);
o.GetType().GetField(var_name, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public |
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue(o, Prase(fi.FieldType, value));
}
public static object Get(object o, string var_name)
{
return o.GetType().GetField(var_name, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public|
System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(o);
}
public static object Prase(System.Type t, string s)