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);
		}
Example #2
0
 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);
 }
Example #3
0
		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;
		}
Example #4
0
 public bool IsSame(FieldsInfo other)
 {
     if (numEnums != other.numEnums)
     {
         return(false);
     }
     if (fieldTypes.Count != other.fieldTypes.Count)
     {
         return(false);
     }
     foreach (var kv in fieldTypes)
     {
         if (!other.fieldTypes.TryGetValue(kv.Key, out int num))
         {
             return(false);
         }
         if (kv.Value != num)
         {
             return(false);
         }
     }
     return(true);
 }