how can i create properties with array

  • Thread starter Thread starter Sukh
  • Start date Start date
S

Sukh

How can I create a property in a class which can store value like
array. something like following
string []strName = new string[5];
public StrName[6]
{
get{ return strName;}
set{ strName=value;
}

this is just a sample...
I hv one options indexers but is it possible i can use mulitple indexer
and multiple properties in a class

can any help...
Thanks..
Sukh.
 
private string[] _strName = new string[5];
public string[] strName
{
get { return _strName; }
set { _strName = value; }
}

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
Back
Top