public Context(ITypeDefOrRef delegateType, int methodToken, int declaringTypeToken, ProxyCreatorType proxyCreatorType) { this.delegateType = delegateType; this.methodToken = methodToken; this.declaringTypeToken = declaringTypeToken; this.proxyCreatorType = proxyCreatorType; }
public Context(uint typeToken, uint methodToken, uint declaringTypeToken, ProxyCreatorType proxyCreatorType) { this.typeToken = typeToken; this.methodToken = methodToken; this.declaringTypeToken = declaringTypeToken; this.proxyCreatorType = proxyCreatorType; }
public ProxyCreatorInfo(MethodDef creatorMethod, ProxyCreatorType proxyCreatorType, ConfuserVersion version, uint magic, MethodDef nativeMethod, ushort callvirtChar) { this.creatorMethod = creatorMethod; this.proxyCreatorType = proxyCreatorType; this.version = version; this.magic = magic; this.nativeMethod = nativeMethod; this.callvirtChar = callvirtChar; }
static bool IsMethodCreator_v14_r58802(MethodDef method, ProxyCreatorType proxyType) { int index = GetFieldNameIndex(method); if (index < 0) throw new ApplicationException("Could not find field name index"); switch (proxyType) { case ProxyCreatorType.Newobj: if (index == 1) return false; if (index == 0) return true; break; case ProxyCreatorType.CallOrCallvirt: if (index == 2) return false; if (index == 1) return true; break; default: throw new ApplicationException("Invalid proxy creator type"); } throw new ApplicationException("Could not find field name index"); }
public Context(TypeReference delegateType, int methodToken, int declaringTypeToken, ProxyCreatorType proxyCreatorType) { this.delegateType = delegateType; this.methodToken = methodToken; this.declaringTypeToken = declaringTypeToken; this.proxyCreatorType = proxyCreatorType; }