Search Results for

    Show / Hide Table of Contents

    Struct TextChange

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

    Constructors

    TextChange(TextSpan, string)

    Declaration
    public TextChange(TextSpan span, string newText)
    Parameters
    Type Name Description
    TextSpan span
    string newText

    Properties

    NewText

    Declaration
    [DataMember(Order = 1)]
    public string? NewText { get; }
    Property Value
    Type Description
    string

    NoChanges

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

    Span

    Declaration
    [DataMember(Order = 0)]
    public TextSpan Span { get; }
    Property Value
    Type Description
    TextSpan

    Methods

    Equals(TextChange)

    Declaration
    public bool Equals(TextChange other)
    Parameters
    Type Name Description
    TextChange 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 ==(TextChange, TextChange)

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

    implicit operator TextChangeRange(TextChange)

    Declaration
    public static implicit operator TextChangeRange(TextChange change)
    Parameters
    Type Name Description
    TextChange change
    Returns
    Type Description
    TextChangeRange

    operator !=(TextChange, TextChange)

    Declaration
    public static bool operator !=(TextChange left, TextChange right)
    Parameters
    Type Name Description
    TextChange left
    TextChange 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