Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (41 sloc) 930 Bytes
using System;
using System.Collections.Generic;
namespace dotFeedLib
{
/// <summary>
/// Contains a list of authors
/// </summary>
public class authorList
{
/// <summary>
/// Contains a list of authors
/// </summary>
List<String> authors;
/// <summary>
/// Creates a new, empty authorList
/// </summary>
public authorList()
{
authors = new List<String>();
}
/// <summary>
/// Adds an author (if not already added) to this list
/// </summary>
/// <param name="author">author that is to be added</param>
public void author_add(string author)
{
if(authors.IndexOf(author) == -1 && !String.IsNullOrEmpty(author))
{
authors.Add(author);
}
}
/// <summary>
/// gets a list that coantains all authores in this list
/// </summary>
/// <returns>string[] that conatins alla uthors</returns>
public string[] get_authors()
{
return authors.ToArray();
}
}
}