Click here to Skip to main content
15,892,005 members
Articles / Desktop Programming / Windows Forms

Windows Services Made Simple

Rate me:
Please Sign up or sign in to vote.
4.62/5 (10 votes)
27 Jun 2007CPOL10 min read 94.5K   6.9K   69  
Describes how to build a Windows Service using the Pegasus Library.
using System;
using System.Collections.Generic;
using System.Text;

namespace Pegasus.UnitTests.Runtime.Serialization.Formatters.Xml.XmlFormatter2Tests
{
	/// <summary>
	/// Test class for derived serializable classes
	/// </summary>
	[Serializable]
	public class SerializationChild : SerializationRoot
	{
		// Local Instance Values
		private SerializationRoot m_otherObject = null;
		private int m_count;

		[NonSerialized]
		private int m_nonCount = 5;

		/// <summary>
		/// Initializes a new instance of the <see cref="T:SerializationChild"/> class.
		/// </summary>
		public SerializationChild()
		{
		}

		/// <summary>
		/// Gets or sets the other object.
		/// </summary>
		/// <value>The other object.</value>
		public SerializationRoot OtherObject
		{
			get
			{
				return m_otherObject;
			}

			set
			{
				m_otherObject = value;
			}
		}

		/// <summary>
		/// Gets or sets the count.
		/// </summary>
		/// <value>The count.</value>
		public int Count
		{
			get
			{
				return m_count;
			}
		
			set
			{
				m_count = value;
			}
		}

		/// <summary>
		/// Gets or sets the nonserialize count.
		/// </summary>
		/// <value>The nonserialize count.</value>
		public int NonserializeCount
		{
			get
			{
				return m_nonCount;
			}

			set
			{
				m_nonCount = value;
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions