6 instantiations of CodeEventReferenceExpression
System.CodeDom (4)
System\CodeDom\CodeAttachEventStatement.cs (2)
19
this(new
CodeEventReferenceExpression
(targetObject, eventName), listener)
25
get => _eventRef ??= new
CodeEventReferenceExpression
();
System\CodeDom\CodeRemoveEventStatement.cs (2)
20
_eventRef = new
CodeEventReferenceExpression
(targetObject, eventName);
26
get => _eventRef ??= new
CodeEventReferenceExpression
();
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1963
raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new
CodeEventReferenceExpression
(ThisReference, PropertyChangedEvent.Name)));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
52
CodeEventReferenceExpression eventRef =
new
(eventTarget, eventToSerialize.Name);
23 references to CodeEventReferenceExpression
System (1)
src\libraries\shims\System\ref\System.cs (1)
56
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeEventReferenceExpression
))]
System.CodeDom (19)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
647
private void GenerateEventReferenceExpression(
CodeEventReferenceExpression
e)
1186
else if (e is
CodeEventReferenceExpression
)
1188
GenerateEventReferenceExpression((
CodeEventReferenceExpression
)e);
Microsoft\VisualBasic\VBCodeGenerator.cs (4)
1107
protected override void GenerateEventReferenceExpression(
CodeEventReferenceExpression
e)
1129
private void GenerateFormalEventReferenceExpression(
CodeEventReferenceExpression
e)
1147
if (e.TargetObject is
CodeEventReferenceExpression
)
1150
GenerateFormalEventReferenceExpression((
CodeEventReferenceExpression
)e.TargetObject);
System\CodeDom\CodeAttachEventStatement.cs (3)
8
private
CodeEventReferenceExpression
_eventRef;
12
public CodeAttachEventStatement(
CodeEventReferenceExpression
eventRef, CodeExpression listener)
23
public
CodeEventReferenceExpression
Event
System\CodeDom\CodeRemoveEventStatement.cs (3)
8
private
CodeEventReferenceExpression
_eventRef;
12
public CodeRemoveEventStatement(
CodeEventReferenceExpression
eventRef, CodeExpression listener)
24
public
CodeEventReferenceExpression
Event
System\CodeDom\Compiler\CodeGenerator.cs (3)
563
else if (e is
CodeEventReferenceExpression
)
565
GenerateEventReferenceExpression((
CodeEventReferenceExpression
)e);
1382
protected abstract void GenerateEventReferenceExpression(
CodeEventReferenceExpression
e);
System\CodeDom\Compiler\CodeValidator.cs (3)
727
else if (e is
CodeEventReferenceExpression
)
729
ValidateEventReferenceExpression((
CodeEventReferenceExpression
)e);
878
private void ValidateEventReferenceExpression(
CodeEventReferenceExpression
e)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1155
else if (result is
CodeEventReferenceExpression
or CodeMethodReferenceExpression or CodeDelegateCreateExpression)
2663
else if (expression is
CodeEventReferenceExpression
eventReferenceEx)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
52
CodeEventReferenceExpression
eventRef = new(eventTarget, eventToSerialize.Name);