code_junkie

modopt and .NET reflection

Nov 13th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class ClassA;
  2. template<typename _Type> class ClassTempA;
  3.  
  4. public interface class Test : BaseFunc {
  5. public:
  6. ClassTempA<int>& SomeFunc2(ClassA inst) = 0;
  7. };
  8.  
  9. unsafe ClassTempA<int>* modopt(IsImplicitlyDereferenced) SomeFunc2(ClassA inst);
  10.  
  11. class ClassA;
  12. template<typename _Type> class ClassTempA;
  13.  
  14. public interface class Test : BaseFunc {
  15. public:
  16. ClassTempA<int>& SomeFunc2(ClassA inst) = 0;
  17. };
  18.  
  19. array<Type^>^ GetModifiers()
  20. {
  21. MethodInfo^ SomeFunc2 = Test::typeid->GetMethod("SomeFunc2");
  22. return method->ReturnParameter->GetOptionalCustomModifiers();
  23. }
Add Comment
Please, Sign In to add comment