List Info

Thread: C-Sharp (C#) Group: How to retrieve a list of string from a class?




C-Sharp (C#) Group: How to retrieve a list of string from a class?
country flaguser name
United States
2007-10-03 05:40:59
How to retrieve an array of string from a class string
declaration
like the folowing:
namespace ns{

  public partial class nc : Form{
    public static string user = "user";
    public static string host = "host";
...
    public doList(){
      string[] arrStr = //getList of string from class
nc//;
      }
    }
  }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


C-Sharp (C#) Group: Re: How to retrieve a list of string from a class?
country flaguser name
United States
2007-10-04 03:15:59
Hi
Can use following :
namespace ns{
>
>   public partial class nc : Form{
>     public static string[]  arrStr;

>     public doList(){
>     this.arrStr;
>       }
>     }
>   }
On Oct 3, 2:40 pm, "psyl...gmail.com"
<psyl...gmail.com> wrote:
> How to retrieve an array of string from a class string
declaration
> like the folowing:
> namespace ns{
>
>   public partial class nc : Form{
>     public static string user = "user";
>     public static string host = "host";
> ...
>     public doList(){
>       string[] arrStr = //getList of string from class
nc//;
>       }
>     }
>   }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://g
roups.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )