C# Class Microsoft.Cci.SourceLocationSpanningEntirePrimaryDocument

Inheritance: PrimarySourceLocation
显示文件 Open project: visualmutator/visualmutator

Public Methods

Method Description
CopyTo ( int offset, char destination, int destinationOffset, int length ) : int

Copies the specified number of characters to the destination character array, starting at the specified offset from the start if the source location. Returns the number of characters actually copied. This number will be greater than zero as long as position is less than this.Length. The number will be precisely the number asked for unless there are not enough characters left in the document.

SourceLocationSpanningEntirePrimaryDocument ( IPrimarySourceDocument primarySourceDocument ) : System

Allocates source location that spans entire primary source document, but that delays computing this.Length until needed so that the document can be streamed.

Method Details

CopyTo() public method

Copies the specified number of characters to the destination character array, starting at the specified offset from the start if the source location. Returns the number of characters actually copied. This number will be greater than zero as long as position is less than this.Length. The number will be precisely the number asked for unless there are not enough characters left in the document.
public CopyTo ( int offset, char destination, int destinationOffset, int length ) : int
offset int The starting index to copy from. Must be greater than zero and less than this.Length.
destination char The destination array. Must have at least destinationOffset+length elements.
destinationOffset int The starting index where the characters must be copied to in the destination array.
length int The maximum number of characters to copy. Cannot be more than this.Length-position.
return int

SourceLocationSpanningEntirePrimaryDocument() public method

Allocates source location that spans entire primary source document, but that delays computing this.Length until needed so that the document can be streamed.
public SourceLocationSpanningEntirePrimaryDocument ( IPrimarySourceDocument primarySourceDocument ) : System
primarySourceDocument IPrimarySourceDocument The document that the resulting source location spans.
return System