Red Gate forums :: View topic - do you know the modopt and modreq translation please
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 6 Community Forum
.NET Reflector 6 Community Forum forum

do you know the modopt and modreq translation please

Search in .NET Reflector 6 Community Forum forum
Post new topic   Reply to topic
Jump to:  
Author Message
seb



Joined: 19 Jul 2011
Posts: 3

PostPosted: Tue Jul 19, 2011 9:28 pm    Post subject: do you know the modopt and modreq translation please Reply with quote

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
View user's profile Send private message
seb



Joined: 19 Jul 2011
Posts: 3

PostPosted: Tue Jul 19, 2011 9:46 pm    Post subject: Reply with quote

j think finding the solution here
http://compgroups.net/comp.lang.c++.moderated/Is-stack-based-object-design-for-ref-class-really-a-good-design-in-C++-C
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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