public UnknownHandlerInfo(TypeDef type, CsvmInfo csvmInfo) { this.type = type; this.csvmInfo = csvmInfo; fieldsInfo = new FieldsInfo(getFields(type)); countMethods(); findOverrideMethods(); executeMethodThrows = countThrows(executeMethod); executeMethodPops = countPops(executeMethod); }
public bool isSame(FieldsInfo other) { if (numEnums != other.numEnums) return false; if (fieldTypes.Count != other.fieldTypes.Count) return false; foreach (var kv in fieldTypes) { int num; if (!other.fieldTypes.TryGetValue(kv.Key, out num)) return false; if (kv.Value != num) return false; } return true; }
public bool isSame(FieldsInfo other) { if (numEnums != other.numEnums) { return(false); } if (fieldTypes.Count != other.fieldTypes.Count) { return(false); } foreach (var kv in fieldTypes) { int num; if (!other.fieldTypes.TryGetValue(kv.Key, out num)) { return(false); } if (kv.Value != num) { return(false); } } return(true); }