Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. string array property

string array property

Scheduled Pinned Locked Moved C#
data-structureshelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tuwing Sabado
    wrote on last edited by
    #1

    I need your help guys. Thanks in advance. Can you please teach me on how to create a string array property or give a snippet/sample code. I need this property to have a string editor for my custom web control.

    N M 2 Replies Last reply
    0
    • T Tuwing Sabado

      I need your help guys. Thanks in advance. Can you please teach me on how to create a string array property or give a snippet/sample code. I need this property to have a string editor for my custom web control.

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello

      Mark Anthony Sabado wrote:

      how to create a string array property

      private string[] _myarray;
      public string[] MyStringArray
      {
      get { return _myarray; }
      set { _myarray = value; }
      }

      Was that what you were looking for?

      Regards:rose:

      T 1 Reply Last reply
      0
      • N Nader Elshehabi

        Hello

        Mark Anthony Sabado wrote:

        how to create a string array property

        private string[] _myarray;
        public string[] MyStringArray
        {
        get { return _myarray; }
        set { _myarray = value; }
        }

        Was that what you were looking for?

        Regards:rose:

        T Offline
        T Offline
        Tuwing Sabado
        wrote on last edited by
        #3

        Yes, Thanks again.

        1 Reply Last reply
        0
        • T Tuwing Sabado

          I need your help guys. Thanks in advance. Can you please teach me on how to create a string array property or give a snippet/sample code. I need this property to have a string editor for my custom web control.

          M Offline
          M Offline
          Martin 0
          wrote on last edited by
          #4

          Hello, Maybe 'System.Collections.Specialized.StringCollection' can help you somehow, to make your code more dynamic.

          private System.Collections.Specialized.StringCollection _mystringcollection = new System.Collections.Specialized.StringCollection;

          public System.Collections.Specialized.StringCollection MyStringCollection
          {
          get
          {
          return _mystringcollection;
          }
          set
          {
          _mystringcollection = value;
          }
          }

          All the best, Martin

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups