Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to get Name from ILocalizableString? #4281


User avatar
0
prev created

I need to get list of navigation menu for anonymous user, so that I use INavigationManager. But I also need the Name property of DisplayName which is a ILocalizableString object.

What is the solution?


6 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    What do you mean?

    (Link to previous topic for context: #4271@85f1c120-58c4-45d8-ace2-b82df474fb89)

  • User Avatar
    0
    prev created

    yap, this is linked to viewtopic.php?p=24724

  • User Avatar
    0
    aaron created
    Support Team

    So... What do you mean?

  • User Avatar
    0
    prev created

    I need to get Name from ILocalizableString, but I cannot figure out the solution.

  • User Avatar
    0
    aaron created
    Support Team

    You can cast it to the concrete class:

    var name = (localizableString as LocalizableString).Name;
    
  • User Avatar
    0
    prev created

    Thank a lot, it works... :) :) :) :)