Прочитај на енглеском

Делите путем


SemanticEdit Struct

Definition

Describes a symbol edit between two compilations. For example, an addition of a method, an update of a method, removal of a type, etc.

C#
public struct SemanticEdit : IEquatable<Microsoft.CodeAnalysis.Emit.SemanticEdit>
C#
public readonly struct SemanticEdit : IEquatable<Microsoft.CodeAnalysis.Emit.SemanticEdit>
Inheritance
SemanticEdit
Implements

Constructors

Properties

Instrumentation

Instrumentation update to be applied to a method. If not empty, OldSymbol and NewSymbol must be non-null IMethodSymbols, and Kind must be Update.

Kind

The type of edit.

NewSymbol

The symbol from the later compilation, or the symbol of the containing type from the later compilation if the edit represents a deletion.

OldSymbol

The symbol from the earlier compilation, or null if the edit represents an addition.

PreserveLocalVariables

True if SyntaxMap is not null.

RuntimeRudeEdit

Associates a syntax node in the later compilation to an error that should be reported at runtime by the IL generated for the node, if any.

SyntaxMap

A map from syntax node in the later compilation to syntax node in the previous compilation, or null if PreserveLocalVariables is false and the map is not needed or the source of the current method is the same as the source of the previous method.

Methods

Equals(Object)
Equals(SemanticEdit)

SemanticEdits are considered equal if they are of the same Kind and the corresponding OldSymbol and NewSymbol symbols are the same. The effects of edits that compare equal on the emitted metadata/IL are not necessarily the same.

GetHashCode()

Operators

Applies to

Производ Верзије
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0