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); }
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); }