InstanceReferenceKind Enum

Definition

Kind of reference for an IInstanceReferenceOperation.

C#
public enum InstanceReferenceKind
Inheritance
InstanceReferenceKind

Fields

Name Value Description
ContainingTypeInstance 0

Reference to an instance of the containing type. Used for this and base in C# code, and Me, MyClass, MyBase in VB code.

ImplicitReceiver 1

Reference to the object being initialized in C# or VB object or collection initializer, anonymous type creation initializer, or to the object being referred to in a VB With statement, or the C# 'with' expression initializer.

PatternInput 2

Reference to the value being matching in a property subpattern.

InterpolatedStringHandler 3

Reference to the interpolated string handler instance created as part of a parent interpolated string handler conversion.

Applies to

Product Versions
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