Пример #1
0
 public Context(ITypeDefOrRef delegateType, int methodToken, int declaringTypeToken, ProxyCreatorType proxyCreatorType)
 {
     this.delegateType       = delegateType;
     this.methodToken        = methodToken;
     this.declaringTypeToken = declaringTypeToken;
     this.proxyCreatorType   = proxyCreatorType;
 }
Пример #2
0
 public Context(uint typeToken, uint methodToken, uint declaringTypeToken, ProxyCreatorType proxyCreatorType)
 {
     this.typeToken          = typeToken;
     this.methodToken        = methodToken;
     this.declaringTypeToken = declaringTypeToken;
     this.proxyCreatorType   = proxyCreatorType;
 }
Пример #3
0
			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;
			}
Пример #4
0
			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;
			}
Пример #5
0
		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");
		}
Пример #6
0
 public Context(TypeReference 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;
 }
Пример #8
0
		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");
		}