Click or drag to resize

Patch Class

Class representing one patch operation.
Inheritance Hierarchy
System.Object
  GSF.Text.Patch

Namespace: GSF.Text
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.239-beta+5928cebde0dd955df84e791f5ea67acbd192773e
Syntax
public class Patch
View Source

The Patch type exposes the following members.

Constructors
 NameDescription
Public methodPatchInitializes a new instance of the Patch class
Top
Properties
 NameDescription
Public propertyDiffs List of Diffs in the patch
Public propertyLength1 Number of lines from source contained in this patch
Public propertyLength2 Number of lines from target contained in this patch
Public propertyStart1 Source line number (zero-based index)
Public propertyStart2 Target line number (zero-based index)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Emulate GNU diff's format. Header: @@ -382,8 +481,9 @@ Indices are printed as 1-based, not 0-based.
(Overrides Object.ToString())
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefault<T> Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also