Click here to Skip to main content
15,886,666 members
Articles / Programming Languages / C#

Threading paradigms available under the .NET CLR, using C#

Rate me:
Please Sign up or sign in to vote.
4.76/5 (14 votes)
22 Dec 20047 min read 100.1K   633   75  
This article discusses the various threading paradigms available under the .NET CLR, using C#.
using System;

namespace ManagedThreadCS
{
	/// <summary>
	/// Summary description for CGSR.
	/// </summary>
	public class CGSR
	{
     private String _symbol;
	 private String _currency;
	 private int    _spreadRank;
	 private int    _documentation;
	 private double _years;
     private int    _obligor;

		//public:
		public CGSR(String sym, String curr, int sr, int doc, double yrs)
		  {
		   _symbol = sym;
		   _currency = curr;
		   _spreadRank = sr;
		   _documentation = doc;
		   _years = yrs;
		  }

		public String GetSymbol() {return _symbol;}
		public String GetCurrency() {return _currency;}

		public int    GetSpreadRank() {return _spreadRank;}
		public int    GetDocumentation() {return _documentation;}
		public double GetYears() {return _years;}

		public void SetObligor(int i) {_obligor = i;}
		public int  GetObligor() {return _obligor;}

		protected CGSR() {;} // prevents instantiation without parameters
	}
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
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