{
[DataContract(Name = "EntryByPerson", Namespace =
"http://schemas.lotmate.com/Tools/MSS/v1.0")]
public class EntryByPerson
{
[DataMember(Name = "FirstName", Order = 1, IsRequired = true)]
public String FirstName
{
get;
set;
}
[DataMember(Name = "LastName", Order = 2, IsRequired = true)]
public String LastName
{
get;
set;
}
[DataMember(Name = "Style", Order = 3, IsRequired = true)]
public String Style
{
get;
set;
}
[DataMember(Name = "SubStyle", Order = 4, IsRequired = true)]
public String SubStyle
{
get;
set;
}
[DataMember(Name = "EntryNumber", Order = 5, IsRequired = true)]
public String EntryNumber
{
get;
set;
}
[DataMember(Name = "EntryName", Order = 6, IsRequired = true)]
public String EntryName
{
get;
set;
}
[DataMember(Name = "Notes", Order = 7, IsRequired = true)]
public String Notes
{
get;
set;
}
}
}
Filled by this call:
BCBEvent NextContest = DAL.RecentEvent();
List<EntryByPerson> pe = DAL.getListofEntries(NextContest);
.........................
Stephen Russell -
Senior Visual Studio Developer, DBA
Memphis, TN
901.246-0159
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Jason Cavett
> Sent: Thursday, April 09, 2009 10:28 AM
> To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
> Services,.NET Remoting
> Subject: [DotNetDevelopment] Representing Tables in C#
>
>
> I am currently representing a table in C# via a two dimensional array
> - String[,] myArray = new String[20,4];
>
> I was wondering if there was a better way to represent tables in C#.
> The above solution may not be good enough if the table size changes of
> the file I am parsing (currently has 20 rows). I would like to use
> C#'s Collections, but I also like the ease of being able to access a
> location in the two dimensional array by calling myArray[0,0] (rather
> than being forced to go through an iterator as C#'s collections seem
> to want to do).
>
> Does C# provide anything like this?
>
>
> Thank you.
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.238 / Virus Database: 270.11.49/2050 - Release Date:
> 04/09/09 10:27:00