do you know the modopt and modreq translation please

Moderator: Greg.Tillman

do you know the modopt and modreq translation please

Postby seb » Tue Jul 19, 2011 9:28 pm

why this code is translate like this ?

source:
---------
Code: Select all
class ClassA;
template<typename _Type> class ClassTempA;

public interface class Test : BaseFunc {
public:
    ClassTempA<int>& SomeFunc2(ClassA inst) = 0;
};

translate into:
-----------------
Code: Select all
unsafe ClassTempA<int>* modopt(IsImplicitlyDereferenced) SomeFunc2(ClassA inst);


My Search about that (but no reel response):
--------------------------
http://stackoverflow.com/questions/4080 ... reflection

but here he talk about how get this value, like this

Code: Select all
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
seb
 
Posts: 3
Joined: Tue Jul 19, 2011 8:37 pm

Postby seb » Tue Jul 19, 2011 9:46 pm

seb
 
Posts: 3
Joined: Tue Jul 19, 2011 8:37 pm


Return to .NET Reflector 6 Community Forum

Who is online

Users browsing this forum: No registered users and 1 guest