private static bool MatchField(RttiField field, string type, string category, string name) { if (GetFieldCategory(field) != category) { return(false); } if (GetFieldName(field) != name) { return(false); } string ftn = GetTypeNameString(field.Type); // TODO: Custom int32 type - C# doesn't support typedefs. I can pretend this isn't a problem until I need // to write fields. if (ftn != "int" && type != "int32") { if (!ftn.Equals(type, StringComparison.OrdinalIgnoreCase)) { return(false); } } return(true); }
private void renderFieldDetail(RttiField field) { string type = file_.RttiData.TypeFromTypeId(field.type_id); startDetailUpdate(); addDetailLine("name = 0x{0:x} ; {1}", field.name_offset, field.name); addDetailLine("flags = 0x{0:x}", field.flags); addDetailLine("typeid = 0x{0:x}", field.type_id); addDetailLine("type = {0}", type); endDetailUpdate(); }
public Entry(RttiField miBase, RttiField field, bool saveStateOnly) { MIBase = miBase; Field = field; SaveStateOnly = saveStateOnly; }