• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get Method name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get Method name

    Is there a property to reference the name of the method and have it in a string?

    i.e. public bool MyMethod()

    When I go: MyMethod().ToString();

    It returns the state which with a bool if either true or false.

    I want the name of the actual method "MyMethod" in a string.

    Declaring a string in each method but I was hoping I could reference it so its easier...

    Thx
    Irvin

    #2
    Hello ij001,
    You can do it via reflections but nothing we can support.

    You can however take a look at this link which will give you some idea
    http://www.csharp-examples.net/get-method-names/
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sledge, Today, 06:11 PM
    1 response
    8 views
    0 likes
    Last Post sledge
    by sledge
     
    Started by Bionian, Today, 02:46 PM
    2 responses
    9 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by rwilliam, Today, 01:54 PM
    1 response
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by franco12364, Today, 11:27 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by YevhenShynkarenko, Today, 11:48 AM
    4 responses
    27 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X