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 8566421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:39:04+00:00 2026-06-11T17:39:04+00:00

I am creating an interpreter from IL (A compiled C#\VB code) to C. I

  • 0

I am creating an interpreter from IL (A compiled C#\VB code) to C. I tried to create extern property when I interpret it I’ll set my own code.

For an example:

struct String {
    public extern override ValueType Clone( ); //Works but with some warnings.
    public char this[ int index ] {
        extern get;
        //'System.String.this[int].get' must declare a body because it is not marked abstract, extern, or partial
        //The modifier 'extern' is not valid for this item
        extern set; //Didn't work either.
    }
}

How I can make getters and setters without body? (BTW I can’t mark it as abstract too without getting errors.)

I know this question isn’t useful. But very to me.

  • 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-11T17:39:05+00:00Added an answer on June 11, 2026 at 5:39 pm

    I think you want to suggest your interpretator to use alternative implemetation (instead of IL use your custom code). Most CLR friendly way would be to create attribute that your interpreter will read and correspondingly use some of your own code, sort of reverse PInvoke.

    struct MyString { 
    [WhenRunningInInterpretator(implementationFunction="function42")]
    public char this[ int index ] { 
        get {...}  set {....};    } 
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to execute code from my python script and take interpreter-style output like
I am creating an interpreter for my extension to HQ9+, which has the following
I'm trying to reproduce an example from Network Security with OpenSSL (by Chandra et
I am creating an interpreter for my esolang, and I need the user to
I've always had this dream of creating a 'real exe' from a scripting language.
I'm creating a programming language from scratch in C, and I'd prefer not to
I'm trying to cross-compile several libraries from OSX to iOS. I've successfully cross-compiled libjpeg
I am creating a property in a DOM element using javascript in a function
Possible Duplicate: Creating multiple numbers with certain number of bits set I'm attempting to
I'm an amateur with ANTLR and I'm creating an interpreter for a simple processor

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.