Encapsulating fields with m_

Thread is closed for posting
2 posts, 0 answers
  1. Travis Johnson
    Travis Johnson avatar
    13 posts
    Member since:
    Apr 2006

    Posted 23 Jan 2014 Link to this post

    currently, when i encapsulate a field such as
    private string m_myFieldName

    to a get/set property, 
    this is what i get
    public string MMyFieldName
                    return m_myFieldName
            m_myFieldName = value;

    Is there a way for me to tell the just code to ignore the m_prefix when encapsulating fields to Get/Set properties in order to just get
    MyFieldName as the property name? 

  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 24 Jan 2014 Link to this post

    Hi Travis,

    I am afraid that JustCode can't ignore the prefix at the moment. It is part of the field name that we use to produce a name for the newly created property according to our naming convention.

    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Back to Top