Search Results for

    Show / Hide Table of Contents

    Struct TextChangeRange

    Implements
    IEquatable<TextChangeRange>
    Inherited Members
    object.GetType()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Microsoft.CodeAnalysis.Text
    Assembly: Microsoft.CodeAnalysis.dll
    Syntax
    public readonly struct TextChangeRange : IEquatable<TextChangeRange>

    Constructors

    TextChangeRange(TextSpan, int)

    Declaration
    public TextChangeRange(TextSpan span, int newLength)
    Parameters
    Type Name Description
    TextSpan span
    int newLength

    Properties

    NewLength

    Declaration
    public int NewLength { get; }
    Property Value
    Type Description
    int

    NoChanges

    Declaration
    public static IReadOnlyList<TextChangeRange> NoChanges { get; }
    Property Value
    Type Description
    IReadOnlyList<TextChangeRange>

    Span

    Declaration
    public TextSpan Span { get; }
    Property Value
    Type Description
    TextSpan

    Methods

    Collapse(IEnumerable<TextChangeRange>)

    Declaration
    public static TextChangeRange Collapse(IEnumerable<TextChangeRange> changes)
    Parameters
    Type Name Description
    IEnumerable<TextChangeRange> changes
    Returns
    Type Description
    TextChangeRange

    Equals(TextChangeRange)

    Declaration
    public bool Equals(TextChangeRange other)
    Parameters
    Type Name Description
    TextChangeRange other
    Returns
    Type Description
    bool

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(TextChangeRange, TextChangeRange)

    Declaration
    public static bool operator ==(TextChangeRange left, TextChangeRange right)
    Parameters
    Type Name Description
    TextChangeRange left
    TextChangeRange right
    Returns
    Type Description
    bool

    operator !=(TextChangeRange, TextChangeRange)

    Declaration
    public static bool operator !=(TextChangeRange left, TextChangeRange right)
    Parameters
    Type Name Description
    TextChangeRange left
    TextChangeRange right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0