| Author |
Message |
seb
Joined: 19 Jul 2011 Posts: 3
|
Posted: Tue Jul 19, 2011 9:28 pm Post subject: do you know the modopt and modreq translation please |
|
|
why this code is translate like this ?
source:
---------
| Code: |
class ClassA;
template<typename _Type> class ClassTempA;
public interface class Test : BaseFunc {
public:
ClassTempA<int>& SomeFunc2(ClassA inst) = 0;
};
|
translate into:
-----------------
| Code: |
unsafe ClassTempA<int>* modopt(IsImplicitlyDereferenced) SomeFunc2(ClassA inst);
|
My Search about that (but no reel response):
--------------------------
http://stackoverflow.com/questions/408028/modopt-and-net-reflection
but here he talk about how get this value, like this
| Code: |
class ClassA;
template<typename _Type> class ClassTempA;
public interface class Test : BaseFunc {
public:
ClassTempA<int>& SomeFunc2(ClassA inst) = 0;
};
array<Type^>^ GetModifiers()
{
MethodInfo^ SomeFunc2 = Test::typeid->GetMethod("SomeFunc2");
return method->ReturnParameter->GetOptionalCustomModifiers();
}
|
somme one to help me ,
thanks |
|
| Back to top |
|
 |
seb
Joined: 19 Jul 2011 Posts: 3
|
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group