public static void TestReflection() { Type t = typeof(Auth.Rights); FieldInfo[] fi = t.GetFields(); Auth.Rights rt = new Auth.Rights(); rt.references.read = true; string string_rt = rt.Serialize(); Auth.Rights r2 = new Auth.Rights(); r2.Deserialize("1101"); }
static AuthModule() { rights = new Rights(); }