Exemplo n.º 1
0
 public void DefineMethodOverride(MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration)
 {
     MethodImplTable.Record rec = new MethodImplTable.Record();
     rec.Class             = token;
     rec.MethodBody        = this.ModuleBuilder.GetMethodToken(methodInfoBody).Token;
     rec.MethodDeclaration = this.ModuleBuilder.GetMethodTokenWinRT(methodInfoDeclaration);
     this.ModuleBuilder.MethodImpl.AddRecord(rec);
 }
Exemplo n.º 2
0
		public void DefineMethodOverride(MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration)
		{
			MethodImplTable.Record rec = new MethodImplTable.Record();
			rec.Class = token;
			rec.MethodBody = this.ModuleBuilder.GetMethodToken(methodInfoBody).Token;
			rec.MethodDeclaration = this.ModuleBuilder.GetMethodToken(methodInfoDeclaration).Token;
			this.ModuleBuilder.MethodImpl.AddRecord(rec);
		}