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

  • Home
  • SEARCH
  • 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 3212316
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:49:33+00:00 2026-05-17T14:49:33+00:00

The line of code i need to translate from C++ to C#: void GetAnalysisModeName(

  • 0

The line of code i need to translate from C++ to C#:

void GetAnalysisModeName( ON_wString& name ) const;

I’ve tried with:

public override void GetAnalysisModeName(string name){}

But it tells me that the return type has to be a string.

  • 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-05-17T14:49:34+00:00Added an answer on May 17, 2026 at 2:49 pm

    A straight conversion would be:

    public void GetAnalysisModeName(ref string name)
    {
    }
    

    But it looks like you’re also trying to override something inside of the C# class.

    Judging by the message that the return type must be a string, I’d say that the signature of the method you are overriding and the signature of the C++ method you posted don’t match.

    EDIT

    This is actually a mis-understanding. I double checked the Rhino APIs. You’re using the .NET SDK. Your C++ example uses the C++ SDK. The two SDKs have different signatures. For you to properly override the .NET version, you need:

    public string GetAnalysisModeName(){ }
    

    I suggest you download the .NET SDK Documentation for Rhino so that you have it as a reference. It will also give you a brief description of what the method is supposed to do when implemented.

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

Sidebar

Related Questions

I am writing some code in which i need to get a line from
I need to translate this piece of code from Perl to Lua open(FILE, '/proc/meminfo');
I need help with translating some code from VB to C#. Public Function ToBase36(ByVal
This line of code is a snippet from my select statement. frdFreedays - DateDiff(dd,conReceiptToStock,GetDate())
I need to translate a piece of C code into Delphi/Pascal code, however I'm
I have following line code in my view: <td> Model.some_instance_method(args) </td> I would like
I have managed to crunch down a several line code to this For Each
What is the relative performance cost of calling a method over in-line code?
Error display as Incorrect syntax near '@Cmp_DocPath', if i use comment Line code I
This line of code: DateTime dt = DateTime.ParseExact(time, hh:mm, CultureInfo.InvariantCulture); parses a time value

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.