String to Property

How to convert a string to a property

If you’re like to work with dynamic code and sometimes you only knew to runtime which property to execute on a specific object you have to convert the name to a property. If you have to do it more than once, it would be a good idea to create a function that handles this for you 💡.

Here is a simple template of a function which converts a property name to an object.
Hint: You have to dynamically cast the return object.

3 thoughts on “String to Property

  1. BEST PROGRAM FOR ADVERTISEMENT!

    XRumer is the best program for advertisement!
    It’s have CAPTCHA recognizer, email verificator, and a lot of other functions…

    This software will help to increase traffic to website to hundreds, thousands times.
    Program have a rich seven year history, which use experience of professionals in search engine optimization.
    Appreciate and use a truly unique and powerful XRumer program, can both professionals and beginners.
    MORE INFO=> https://bit.ly/39RzWR4

  2. YOU NEED POTENTIAL CUSTOMERS THAT BUY FROM YOU ?

    I’m talking about a better promotion method than all that exists on the market right now, even better than email marketing.
    Just like you received this message from me, this is exactly how you can promote your business or product.

    Do you want more details or do you want to receive a TEST ?
    CHECK HERE=> https://bit.ly/Good_Promotion

  3. This is our party. You can join me? https://hellena.page.link/1V3i

    intimate here are my photos. Nick Dipassy69/ You are very beautiful and hot, fuck me in all holes)
    https://allinna.page.link/sTPw

Leave a Reply

Your email address will not be published. Required fields are marked *