Class Library Project

after you have created such a project, you can add classes like the following sample.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace SharedObjects
{
[Serializable]
public class Sample
{
public string Name = "Contains a Name";
public int Numeric = 456;
public List<string> ListData;

public Sample()
{
this.ListData = new List<string>();
this.ListData.Add(@"Sample Data 1");
this.ListData.Add(@"Sample Data 2");
this.ListData.Add(@"Sample Data 3");
this.ListData.Add(@"Sample Data 4");
this.ListData.Add(@"Sample Data 5");
}
}
}

Sample.cs.txt

Last edited Jul 11, 2007 at 4:11 PM by ronischuetz, version 3

Comments

No comments yet.