Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8047819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:13:28+00:00 2026-06-05T06:13:28+00:00

i am embedding Mono to use it for scripting in my application. I would

  • 0

i am embedding Mono to use it for scripting in my application. I would like to access properties. To make sure the type my application expects is equivalent to the type of some property i need to check the property’s type.

My problem is, that i have not found a way to access the property’s type.

For fields there is a single function namely mono_field_get_type. I know how to get the signature of a the property’s getter-/setter-method, but i could not find any function to access for example the return type of the getter-method.

Can you tell me how to retrieve the type of a property?

For those who like to see some code:

MonoType* MonoScriptPropertyVariableSource::getType(MonoObject* instance, MonoProperty* prop)
{
    // MonoMethod* method = mono_property_get_get_method(prop);
    // MonoMethodSignature* sig = mono_method_get_signature(method, 0, 0);
    // and now? ...

    return ...
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:13:32+00:00Added an answer on June 5, 2026 at 6:13 am

    return mono_signature_get_return_type (sig);

    Other accessors for MonoSignature are in metadata.h.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an application that's embedding Mono, and I'd like to raise an
I'm thinking about embedding arbitrary JSON in the DOM like this: <script type=application/json id=stuff>
I'm embedding IronPython in my C# application. For some reason I'm having trouble loading
I have written some console Hello world-like app. and have followed c# cywgwin mono
I'm working on embedding mono into an application I'm creating, and I haven't gotten
I'm working on an application that's embedding Mono, and I have a simple C#
Hi I have not well understand how rhino license works. I would like make
I am embedding Lua into a C/C++ application. Is there any way to call
When embedding WebView in an application and loading html-pages in it, JavaScripts alert() do
I am embedding a c++ library (binding done with SIP) in my python application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.