Code Coverage Statistics for Source File

c:\Tools\SD3\src\Libraries\ICSharpCode.TextEditor\Project\Src\Document\AbstractSegment.cs

Sequence Point Coverage
N/A
0 of 0
Branch Coverage
N/A
0 of 0
Lines
52
Highlight: Uncovered Code Covered Code
L V Source
1
// <file>
2
//     <copyright see="prj:///doc/copyright.txt"/>
3
//     <license see="prj:///doc/license.txt"/>
4
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
5
//     <version>$Revision: 1965 $</version>
6
// </file>
7
8
using System;
9
10
namespace ICSharpCode.TextEditor.Document
11
{
12
	/// <summary>
13
	/// This interface is used to describe a span inside a text sequence
14
	/// </summary>
15
	public class AbstractSegment : ISegment
16
	{
17
		[CLSCompliant(false)]
18
		protected int offset = -1;
19
		[CLSCompliant(false)]
20
		protected int length = -1;
21
		
22
		#region ICSharpCode.TextEditor.Document.ISegment interface implementation
23
		public virtual int Offset {
24
			get {
25
				return offset;
26
			}
27
			set {
28
				offset = value;
29
			}
30
		}
31
		
32
		public virtual int Length {
33
			get {
34
				return length;
35
			}
36
			set {
37
				length = value;
38
			}
39
		}
40
		
41
		#endregion
42
		
43
		public override string ToString()
44
		{
45
			return String.Format("[AbstractSegment: Offset = {0}, Length = {1}]",
46
			                     Offset,
47
			                     Length);
48
		}
49
		
50
		
51
	}
52
}