Программирование в IIS




Пример 3.8


/// <summary> /// a single event /// </summary> public class anEvent {

private long CurrentID; private string CurrentName; private string CurrentDescription; private DateTime CurrentDateTime;

public anEvent() { }

/// <summary> /// ID for opened event /// </summary> public long ID { get { return CurrentID; } set { CurrentID = value; } }

/// <summary> /// Date and time of actual event /// </summary> public DateTime DateTime { get { return CurrentDateTime; } set { CurrentDateTime = value; } }

/// <summary> /// description of event /// </summary> public string Description { get { return CurrentDescription; } set { CurrentDescription = value; } }

/// <summary> /// Name for opened event /// </summary> public string Name { get { return CurrentName; } set { CurrentName = value; } } }

Листинг 3.8. Source Code for Class anEvent

Закрыть окно






Содержание  Назад  Вперед