From 7e16850b77ad1951c9deff67f2dfa2ac9c22ba2d Mon Sep 17 00:00:00 2001 From: Julien Couvreur Date: Tue, 23 Sep 2025 07:52:31 -0700 Subject: [PATCH 1/5] Extensions: add Name property on embedded ExtensionMarkerAttribute --- ...eddedExtensionMarkerNameAttributeSymbol.cs | 182 ++++++- .../DynamicInstrumentationTests.cs | 30 +- .../Semantics/ExtensionOperatorsTests.cs | 48 +- .../Test/Emit3/Semantics/ExtensionTests.cs | 446 +++++++++--------- .../Test/Emit3/Semantics/ExtensionTests2.cs | 140 +++++- 5 files changed, 558 insertions(+), 288 deletions(-) diff --git a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs index ad619ae1ae97b..3b36656a56d3e 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs @@ -3,15 +3,23 @@ // See the LICENSE file in the project root for more information. using System; +using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; +using System.Reflection; +using Microsoft.Cci; +using Microsoft.CodeAnalysis.PooledObjects; namespace Microsoft.CodeAnalysis.CSharp.Symbols { - // Tracked by https://github.com/dotnet/roslyn/issues/78963 : We are not declaring and not initializing the "Name" property yet. internal sealed class SynthesizedEmbeddedExtensionMarkerAttributeSymbol : SynthesizedEmbeddedAttributeSymbolBase { private readonly ImmutableArray _constructors; + private readonly SynthesizedFieldSymbol _nameField; + private readonly NamePropertySymbol _nameProperty; + + private const string PropertyName = "Name"; + private const string FieldName = "k__BackingField"; public SynthesizedEmbeddedExtensionMarkerAttributeSymbol( string name, @@ -21,10 +29,11 @@ public SynthesizedEmbeddedExtensionMarkerAttributeSymbol( TypeSymbol systemStringType) : base(name, containingNamespace, containingModule, baseType: systemAttributeType) { - _constructors = ImmutableArray.Create( - new SynthesizedEmbeddedAttributeConstructorSymbol( - this, - m => ImmutableArray.Create(SynthesizedParameterSymbol.Create(m, TypeWithAnnotations.Create(systemStringType), 0, RefKind.None, name: "name")))); + Debug.Assert(FieldName == GeneratedNames.MakeBackingFieldName(PropertyName)); + + _nameField = new SynthesizedFieldSymbol(this, systemStringType, FieldName); + _nameProperty = new NamePropertySymbol(_nameField); + _constructors = [new ConstructorSymbol(this, systemStringType, _nameField)]; // Ensure we never get out of sync with the description Debug.Assert(_constructors.Length == AttributeDescription.ExtensionMarkerAttribute.Signatures.Length); @@ -39,5 +48,168 @@ internal override AttributeUsageInfo GetAttributeUsageInfo() AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, allowMultiple: false, inherited: false); } + + internal override IEnumerable GetFieldsToEmit() + { + return [_nameField]; + } + + public override ImmutableArray GetMembers() + => [_nameField, _nameProperty, _nameProperty.GetMethod, _constructors[0]]; + + public override ImmutableArray GetMembers(string name) + { + return name switch + { + FieldName => [_nameField], + PropertyName => [_nameProperty], + WellKnownMemberNames.InstanceConstructorName => [_constructors[0]], + _ => [] + }; + } + + public override IEnumerable MemberNames + => [_nameField.Name, PropertyName, WellKnownMemberNames.InstanceConstructorName]; + + private sealed class ConstructorSymbol : SynthesizedInstanceConstructor + { + private readonly ImmutableArray _parameters; + private readonly SynthesizedFieldSymbol _nameField; + + internal ConstructorSymbol( + NamedTypeSymbol containingType, + TypeSymbol systemStringType, + SynthesizedFieldSymbol nameField) : + base(containingType) + { + _parameters = [SynthesizedParameterSymbol.Create(containingType, TypeWithAnnotations.Create(systemStringType), ordinal: 0, RefKind.None, name: "name")]; + _nameField = nameField; + } + + public override ImmutableArray Parameters => _parameters; + + internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) + { + GenerateMethodBodyCore(compilationState, diagnostics); + } + + internal override void GenerateMethodBodyStatements(SyntheticBoundNodeFactory f, ArrayBuilder statements, BindingDiagnosticBag diagnostics) + { + // this._namedField = name; + statements.Add(f.Assignment(f.Field(f.This(), _nameField), f.Parameter(_parameters[0]))); + } + } + + private sealed class NamePropertySymbol : PropertySymbol + { + private readonly SynthesizedFieldSymbol _backingField; + + public NamePropertySymbol(SynthesizedFieldSymbol backingField) + { + _backingField = backingField; + GetMethod = new NameGetAccessorMethodSymbol(this, backingField); + } + + public override string Name => PropertyName; + public override TypeWithAnnotations TypeWithAnnotations => _backingField.TypeWithAnnotations; + public override RefKind RefKind => RefKind.None; + public override ImmutableArray RefCustomModifiers => []; + public override MethodSymbol GetMethod { get; } + public override MethodSymbol? SetMethod => null; + public override Symbol ContainingSymbol => _backingField.ContainingSymbol; + public override Accessibility DeclaredAccessibility => Accessibility.Internal; + + public override ImmutableArray Locations => []; + public override ImmutableArray DeclaringSyntaxReferences => []; + public override ImmutableArray ExplicitInterfaceImplementations => []; + public override ImmutableArray Parameters => []; + public override bool IsIndexer => false; + public override bool IsStatic => false; + public override bool IsVirtual => false; + public override bool IsOverride => false; + public override bool IsAbstract => false; + public override bool IsSealed => false; + public override bool IsExtern => false; + internal override bool IsRequired => false; + internal override bool HasSpecialName => false; + internal override CallingConvention CallingConvention => CallingConvention.HasThis; + internal override bool MustCallMethodsDirectly => false; + internal override bool HasUnscopedRefAttribute => false; + internal override ObsoleteAttributeData? ObsoleteAttributeData => null; + internal override int TryGetOverloadResolutionPriority() => 0; + } + + private sealed partial class NameGetAccessorMethodSymbol : SynthesizedMethodSymbol + { + private readonly NamePropertySymbol _nameProperty; + private readonly SynthesizedFieldSymbol _backingField; + + public NameGetAccessorMethodSymbol(NamePropertySymbol nameProperty, SynthesizedFieldSymbol backingField) + { + _nameProperty = nameProperty; + _backingField = backingField; + } + + public override string Name => "get_Name"; + internal override bool HasSpecialName => true; + public override MethodKind MethodKind => MethodKind.PropertyGet; + public override Symbol AssociatedSymbol => _nameProperty; + public override Symbol ContainingSymbol => _nameProperty.ContainingSymbol; + + internal override bool SynthesizesLoweredBoundBody => true; + + internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) + { + SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics); + F.CurrentFunction = this.OriginalDefinition; + + try + { + // return this._backingField; + F.CloseMethod(F.Return(F.Field(F.This(), _backingField))); + } + catch (SyntheticBoundNodeFactory.MissingPredefinedMember ex) + { + diagnostics.Add(ex.Diagnostic); + } + } + + public override bool IsStatic => false; + public override int Arity => 0; + public override bool IsExtensionMethod => false; + public override bool HidesBaseMethodsByName => false; + public override bool IsVararg => false; + public override bool ReturnsVoid => false; + public override bool IsAsync => false; + public override RefKind RefKind => RefKind.None; + public override ImmutableArray RefCustomModifiers => []; + public override TypeWithAnnotations ReturnTypeWithAnnotations => _nameProperty.TypeWithAnnotations; + public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; + public override ImmutableHashSet ReturnNotNullIfParameterNotNull => []; + public override ImmutableArray TypeArgumentsWithAnnotations => []; + public override ImmutableArray TypeParameters => []; + public override ImmutableArray Parameters => []; + public override ImmutableArray ExplicitInterfaceImplementations => []; + public override ImmutableArray Locations => []; + public override Accessibility DeclaredAccessibility => Accessibility.Internal; + public override bool IsVirtual => false; + public override bool IsOverride => false; + public override bool IsAbstract => false; + public override bool IsSealed => false; + public override bool IsExtern => false; + protected override bool HasSetsRequiredMembersImpl => false; + internal override MethodImplAttributes ImplementationAttributes => default; + internal override bool HasDeclarativeSecurity => false; + internal override MarshalPseudoCustomAttributeData? ReturnValueMarshallingInformation => null; + internal override bool RequiresSecurityObject => false; + internal override CallingConvention CallingConvention => CallingConvention.HasThis; + internal override bool GenerateDebugInfo => false; + + public override DllImportData? GetDllImportData() => null; + internal override ImmutableArray GetAppliedConditionalSymbols() => []; + internal override IEnumerable? GetSecurityInformation() => null; + internal override bool IsMetadataNewSlot(bool ignoreInterfaceImplementationChanges = false) => false; + internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None) => false; + } } } diff --git a/src/Compilers/CSharp/Test/Emit/Emit/DynamicAnalysis/DynamicInstrumentationTests.cs b/src/Compilers/CSharp/Test/Emit/Emit/DynamicAnalysis/DynamicInstrumentationTests.cs index e09ff5471a165..e4416544babb2 100644 --- a/src/Compilers/CSharp/Test/Emit/Emit/DynamicAnalysis/DynamicInstrumentationTests.cs +++ b/src/Compilers/CSharp/Test/Emit/Emit/DynamicAnalysis/DynamicInstrumentationTests.cs @@ -3705,12 +3705,12 @@ public void M() """ + InstrumentationHelperSource; var checker = new CSharpInstrumentationChecker(); - checker.Method(4, 1, snippet: "", expectBodySpan: false) + checker.Method(5, 1, snippet: "", expectBodySpan: false) .True("42.M();") .True("Microsoft.CodeAnalysis.Runtime.Instrumentation.FlushPayload();"); - checker.Method(6, 1, snippet: "public void M()") + checker.Method(7, 1, snippet: "public void M()") .True("""System.Console.WriteLine("Test");"""); - checker.Method(8, 1) + checker.Method(9, 1) .True() .False() .True() @@ -3801,13 +3801,13 @@ public int P """ + InstrumentationHelperSource; var checker = new CSharpInstrumentationChecker(); - checker.Method(4, 1, snippet: "", expectBodySpan: false) + checker.Method(5, 1, snippet: "", expectBodySpan: false) .True("_ = 42.P;") .True("Microsoft.CodeAnalysis.Runtime.Instrumentation.FlushPayload();"); - checker.Method(6, 1, snippet: "get") + checker.Method(7, 1, snippet: "get") .True("""System.Console.WriteLine("Test");""") .True("return 0;"); - checker.Method(8, 1) + checker.Method(9, 1) .True() .False() .True() @@ -3862,14 +3862,14 @@ public void M() """ + InstrumentationHelperSource; var checker = new CSharpInstrumentationChecker(); - checker.Method(4, 1, snippet: "", expectBodySpan: false) + checker.Method(5, 1, snippet: "", expectBodySpan: false) .True("42.M();") .True("Microsoft.CodeAnalysis.Runtime.Instrumentation.FlushPayload();"); - checker.Method(6, 1, snippet: "public void M()") + checker.Method(7, 1, snippet: "public void M()") .True("""System.Console.WriteLine("Test");""") .True("var f = () =>") .True("f();"); - checker.Method(8, 1) + checker.Method(9, 1) .True() .False() .True() @@ -3924,13 +3924,13 @@ static void local() """ + InstrumentationHelperSource; var checker = new CSharpInstrumentationChecker(); - checker.Method(4, 1, snippet: "", expectBodySpan: false) + checker.Method(5, 1, snippet: "", expectBodySpan: false) .True("42.M();") .True("Microsoft.CodeAnalysis.Runtime.Instrumentation.FlushPayload();"); - checker.Method(6, 1, snippet: "public void M()") + checker.Method(7, 1, snippet: "public void M()") .True("local();") .True("""System.Console.WriteLine("Test");"""); - checker.Method(9, 1) + checker.Method(10, 1) .True() .False() .True() @@ -4005,13 +4005,13 @@ void local() var source = classic ? classicSource : newSource; var checker = new CSharpInstrumentationChecker(); - checker.Method(classic ? 3 : 4, 1, snippet: "", expectBodySpan: false) + checker.Method(classic ? 3 : 5, 1, snippet: "", expectBodySpan: false) .True("42.M();") .True("Microsoft.CodeAnalysis.Runtime.Instrumentation.FlushPayload();"); - checker.Method(classic ? 5 : 6, 1, snippet: classic ? "public static void M(this int i)" : "public void M()") + checker.Method(classic ? 5 : 7, 1, snippet: classic ? "public static void M(this int i)" : "public void M()") .True("local();") .True("""System.Console.WriteLine(i);"""); - checker.Method(classic ? 8 : 9, 1) + checker.Method(classic ? 8 : 10, 1) .True() .False() .True() diff --git a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionOperatorsTests.cs b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionOperatorsTests.cs index 282c4b763eaf3..e7fe72400e677 100644 --- a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionOperatorsTests.cs +++ b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionOperatorsTests.cs @@ -3667,7 +3667,7 @@ class C2 '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -3684,7 +3684,7 @@ 01 00 24 3c 4d 3e 24 33 44 30 43 32 30 39 30 38 33 33 46 39 34 36 30 42 36 46 31 38 36 45 45 43 32 31 43 45 33 42 30 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -3755,7 +3755,7 @@ class C2 '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -3772,7 +3772,7 @@ 01 00 24 3c 4d 3e 24 33 44 30 43 32 30 39 30 38 33 33 46 39 34 36 30 42 36 46 31 38 36 45 45 43 32 31 43 45 33 42 30 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -3835,7 +3835,7 @@ class C2 '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -3852,7 +3852,7 @@ 01 00 24 3c 4d 3e 24 33 44 30 43 32 30 39 30 38 33 33 46 39 34 36 30 42 36 46 31 38 36 45 45 43 32 31 43 45 33 42 30 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9929,7 +9929,7 @@ class C2 x .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209e + // Method begins at RVA 0x20b5 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -9949,7 +9949,7 @@ 01 00 24 3c 4d 3e 24 41 35 42 39 44 41 35 37 36 38 37 42 36 45 42 42 36 35 37 36 46 43 35 37 33 42 31 34 35 39 36 39 00 00 ) - // Method begins at RVA 0x2097 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -10022,7 +10022,7 @@ class C2 x .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209e + // Method begins at RVA 0x20b5 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -10042,7 +10042,7 @@ 01 00 24 3c 4d 3e 24 41 35 42 39 44 41 35 37 36 38 37 42 36 45 42 42 36 35 37 36 46 43 35 37 33 42 31 34 35 39 36 39 00 00 ) - // Method begins at RVA 0x2097 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -10107,7 +10107,7 @@ class C2 x .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209e + // Method begins at RVA 0x20b5 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -10127,7 +10127,7 @@ 01 00 24 3c 4d 3e 24 41 35 42 39 44 41 35 37 36 38 37 42 36 45 42 42 36 35 37 36 46 43 35 37 33 42 31 34 35 39 36 39 00 00 ) - // Method begins at RVA 0x2097 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -18487,7 +18487,7 @@ class C2 '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -18505,7 +18505,7 @@ 01 00 24 3c 4d 3e 24 33 44 30 43 32 30 39 30 38 33 33 46 39 34 36 30 42 36 46 31 38 36 45 45 43 32 31 43 45 33 42 30 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -18577,7 +18577,7 @@ class C2 '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -18595,7 +18595,7 @@ 01 00 24 3c 4d 3e 24 33 44 30 43 32 30 39 30 38 33 33 46 39 34 36 30 42 36 46 31 38 36 45 45 43 32 31 43 45 33 42 30 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -18659,7 +18659,7 @@ class C2 '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -18677,7 +18677,7 @@ 01 00 24 3c 4d 3e 24 33 44 30 43 32 30 39 30 38 33 33 46 39 34 36 30 42 36 46 31 38 36 45 45 43 32 31 43 45 33 42 30 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -26613,7 +26613,7 @@ class C2 x .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209e + // Method begins at RVA 0x20b5 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -26635,7 +26635,7 @@ 01 00 24 3c 4d 3e 24 41 35 42 39 44 41 35 37 36 38 37 42 36 45 42 42 36 35 37 36 46 43 35 37 33 42 31 34 35 39 36 39 00 00 ) - // Method begins at RVA 0x2097 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -26709,7 +26709,7 @@ class C2 x .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209e + // Method begins at RVA 0x20b5 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -26731,7 +26731,7 @@ 01 00 24 3c 4d 3e 24 41 35 42 39 44 41 35 37 36 38 37 42 36 45 42 42 36 35 37 36 46 43 35 37 33 42 31 34 35 39 36 39 00 00 ) - // Method begins at RVA 0x2097 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -26797,7 +26797,7 @@ class C2 x .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209e + // Method begins at RVA 0x20b5 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -26819,7 +26819,7 @@ 01 00 24 3c 4d 3e 24 41 35 42 39 44 41 35 37 36 38 37 42 36 45 42 42 36 35 37 36 46 43 35 37 33 42 31 34 35 39 36 39 00 00 ) - // Method begins at RVA 0x2097 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() diff --git a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests.cs b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests.cs index b67ee16c0f403..7d3a6d53ffdc3 100644 --- a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests.cs +++ b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests.cs @@ -1203,7 +1203,7 @@ class [mscorlib]System.Text.StringBuilder '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20e2 + // Method begins at RVA 0x20fa // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -1220,7 +1220,7 @@ 01 00 24 3c 4d 3e 24 43 44 32 39 45 37 30 45 30 44 43 41 35 42 42 46 43 46 41 43 37 43 32 42 45 46 33 43 35 43 39 39 00 00 ) - // Method begins at RVA 0x20a5 + // Method begins at RVA 0x20bc // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -1239,7 +1239,7 @@ .field public class [mscorlib]System.Text.StringBuilder sb .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { - // Method begins at RVA 0x2079 + // Method begins at RVA 0x2090 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -1249,7 +1249,7 @@ .maxstack 8 .method assembly hidebysig instance void 'b__0' () cil managed { - // Method begins at RVA 0x20ac + // Method begins at RVA 0x20c4 // Code size 42 (0x2a) .maxstack 2 .locals init ( @@ -1286,7 +1286,7 @@ class [mscorlib]System.Text.StringBuilder Inspect ( class [mscorlib]System.Text.StringBuilder sb ) cil managed { - // Method begins at RVA 0x2081 + // Method begins at RVA 0x2098 // Code size 35 (0x23) .maxstack 8 IL_0000: newobj instance void Extensions/'<>c__DisplayClass1_0'::.ctor() @@ -1380,7 +1380,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20f3 + // Method begins at RVA 0x210b // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -1395,7 +1395,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x20bc + // Method begins at RVA 0x20d4 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -1414,7 +1414,7 @@ .field public int32 b .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { - // Method begins at RVA 0x2073 + // Method begins at RVA 0x208a // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -1424,7 +1424,7 @@ .maxstack 8 .method assembly hidebysig instance void 'b__0' () cil managed { - // Method begins at RVA 0x20c4 + // Method begins at RVA 0x20dc // Code size 35 (0x23) .maxstack 3 .locals init ( @@ -1450,7 +1450,7 @@ [0] int32 .method public hidebysig static class [mscorlib]System.Action DoSomething () cil managed { - // Method begins at RVA 0x207c + // Method begins at RVA 0x2094 // Code size 52 (0x34) .maxstack 3 .locals init ( @@ -1557,7 +1557,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20f3 + // Method begins at RVA 0x210b // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -1572,7 +1572,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x20ba + // Method begins at RVA 0x20d2 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -1591,7 +1591,7 @@ .field public int32 b .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { - // Method begins at RVA 0x2073 + // Method begins at RVA 0x208a // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -1601,7 +1601,7 @@ .maxstack 8 .method assembly hidebysig instance void 'g__Do|0' () cil managed { - // Method begins at RVA 0x20c4 + // Method begins at RVA 0x20dc // Code size 35 (0x23) .maxstack 3 .locals init ( @@ -1627,7 +1627,7 @@ [0] int32 .method public hidebysig static class [mscorlib]System.Action DoSomething () cil managed { - // Method begins at RVA 0x207c + // Method begins at RVA 0x2094 // Code size 50 (0x32) .maxstack 3 .locals init ( @@ -1860,7 +1860,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -1875,7 +1875,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -1891,7 +1891,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -1980,7 +1980,7 @@ .method private hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -1995,7 +1995,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -2006,7 +2006,7 @@ .maxstack 8 .method private hidebysig static void M () cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -2118,7 +2118,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206b + // Method begins at RVA 0x2082 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -2133,7 +2133,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x206d + // Method begins at RVA 0x2084 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -2149,7 +2149,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x206d + // Method begins at RVA 0x2084 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -2173,7 +2173,7 @@ int32 get_Property ( object o ) cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 3 (0x3) .maxstack 8 IL_0000: ldc.i4.s 42 @@ -2185,7 +2185,7 @@ void set_Property ( int32 'value' ) cil managed { - // Method begins at RVA 0x206b + // Method begins at RVA 0x2082 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -2309,7 +2309,7 @@ .method private hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206b + // Method begins at RVA 0x2082 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -2324,7 +2324,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x206d + // Method begins at RVA 0x2084 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -2340,7 +2340,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x206d + // Method begins at RVA 0x2084 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -2362,7 +2362,7 @@ 39 42 46 30 32 38 30 00 00 .method private hidebysig static int32 get_Property () cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 3 (0x3) .maxstack 8 IL_0000: ldc.i4.s 42 @@ -2373,7 +2373,7 @@ void set_Property ( int32 'value' ) cil managed { - // Method begins at RVA 0x206b + // Method begins at RVA 0x2082 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -4915,7 +4915,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -4930,7 +4930,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -4944,7 +4944,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -4960,7 +4960,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -4973,7 +4973,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -5305,7 +5305,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x207e + // Method begins at RVA 0x2095 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -5322,7 +5322,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x2077 + // Method begins at RVA 0x208e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -5339,7 +5339,7 @@ string s .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 15 (0xf) .maxstack 8 IL_0000: ldarg.0 @@ -5438,7 +5438,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2082 + // Method begins at RVA 0x2099 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -5455,7 +5455,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x207b + // Method begins at RVA 0x2092 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -5472,7 +5472,7 @@ string s .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 19 (0x13) .maxstack 8 IL_0000: ldarg.0 @@ -5821,7 +5821,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20b2 + // Method begins at RVA 0x20ca // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -5838,7 +5838,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x20ab + // Method begins at RVA 0x20c3 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -5865,7 +5865,7 @@ string s .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 24 (0x18) .maxstack 2 .locals init ( @@ -5889,7 +5889,7 @@ valuetype Extensions/'<>c__DisplayClass1_0'& '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x208c + // Method begins at RVA 0x20a4 // Code size 30 (0x1e) .maxstack 8 IL_0000: ldarg.0 @@ -6015,7 +6015,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20ba + // Method begins at RVA 0x20d1 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -6032,7 +6032,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x208c + // Method begins at RVA 0x20a3 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -6052,7 +6052,7 @@ .field public string s .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { - // Method begins at RVA 0x2093 + // Method begins at RVA 0x20aa // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -6062,7 +6062,7 @@ .maxstack 8 .method assembly hidebysig instance string 'b__0' () cil managed { - // Method begins at RVA 0x209b + // Method begins at RVA 0x20b2 // Code size 30 (0x1e) .maxstack 8 IL_0000: ldarg.0 @@ -6089,7 +6089,7 @@ string s .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 36 (0x24) .maxstack 8 IL_0000: newobj instance void Extensions/'<>c__DisplayClass1_0'::.ctor() @@ -6217,7 +6217,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x216b + // Method begins at RVA 0x217f // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -6234,7 +6234,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x207e + // Method begins at RVA 0x2095 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -6281,7 +6281,7 @@ instance void .ctor ( .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2085 + // Method begins at RVA 0x209c // Code size 25 (0x19) .maxstack 8 IL_0000: ldarg.0 @@ -6301,7 +6301,7 @@ instance void System.IDisposable.Dispose () cil managed 01 00 00 00 ) .override method instance void [mscorlib]System.IDisposable::Dispose() - // Method begins at RVA 0x209f + // Method begins at RVA 0x20b6 // Code size 9 (0x9) .maxstack 8 IL_0000: ldarg.0 @@ -6313,7 +6313,7 @@ .method private final hidebysig newslot virtual instance bool MoveNext () cil managed { .override method instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() - // Method begins at RVA 0x20ac + // Method begins at RVA 0x20c0 // Code size 76 (0x4c) .maxstack 3 .locals init ( @@ -6363,7 +6363,7 @@ .method private final hidebysig specialname newslot virtual 01 00 00 00 ) .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() - // Method begins at RVA 0x2104 + // Method begins at RVA 0x2118 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -6377,7 +6377,7 @@ instance void System.Collections.IEnumerator.Reset () cil managed 01 00 00 00 ) .override method instance void [mscorlib]System.Collections.IEnumerator::Reset() - // Method begins at RVA 0x210c + // Method begins at RVA 0x2120 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -6390,7 +6390,7 @@ instance object System.Collections.IEnumerator.get_Current () cil managed 01 00 00 00 ) .override method instance object [mscorlib]System.Collections.IEnumerator::get_Current() - // Method begins at RVA 0x2104 + // Method begins at RVA 0x2118 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -6404,7 +6404,7 @@ .method private final hidebysig newslot virtual 01 00 00 00 ) .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() - // Method begins at RVA 0x2114 + // Method begins at RVA 0x2128 // Code size 67 (0x43) .maxstack 2 .locals init ( @@ -6445,7 +6445,7 @@ instance class [mscorlib]System.Collections.IEnumerator System.Collections.IEnum 01 00 00 00 ) .override method instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() - // Method begins at RVA 0x2163 + // Method begins at RVA 0x2177 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -6476,7 +6476,7 @@ 3e 64 5f 5f 31 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 22 (0x16) .maxstack 8 IL_0000: ldc.i4.s -2 @@ -6632,7 +6632,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x219a + // Method begins at RVA 0x21b2 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -6649,7 +6649,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x20b3 + // Method begins at RVA 0x20cb // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -6674,7 +6674,7 @@ .method private final hidebysig newslot virtual instance void MoveNext () cil managed { .override method instance void [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext() - // Method begins at RVA 0x20bc + // Method begins at RVA 0x20d4 // Code size 178 (0xb2) .maxstack 3 .locals init ( @@ -6770,7 +6770,7 @@ class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine 01 00 00 00 ) .override method instance void [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) - // Method begins at RVA 0x218c + // Method begins at RVA 0x21a4 // Code size 13 (0xd) .maxstack 8 IL_0000: ldarg.0 @@ -6794,7 +6794,7 @@ 3e 64 5f 5f 31 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 63 (0x3f) .maxstack 2 .locals init ( @@ -6946,7 +6946,7 @@ class C`1 o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20ac + // Method begins at RVA 0x20c3 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -6964,7 +6964,7 @@ 01 00 24 3c 4d 3e 24 44 38 38 34 44 31 45 31 33 39 38 38 45 38 33 38 30 31 42 37 35 37 34 36 39 34 45 31 43 32 43 35 00 00 ) - // Method begins at RVA 0x20a5 + // Method begins at RVA 0x20bc // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -6982,7 +6982,7 @@ class C`1 o, .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 38 (0x26) .maxstack 8 IL_0000: ldarg.0 @@ -7201,7 +7201,7 @@ class C`1 o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2174 + // Method begins at RVA 0x218c // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -7219,7 +7219,7 @@ 01 00 24 3c 4d 3e 24 44 38 38 34 44 31 45 31 33 39 38 38 45 38 33 38 30 31 42 37 35 37 34 36 39 34 45 31 43 32 43 35 00 00 ) - // Method begins at RVA 0x216d + // Method begins at RVA 0x2185 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -7248,7 +7248,7 @@ class C`1 o, .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 57 (0x39) .maxstack 6 .locals init ( @@ -7289,7 +7289,7 @@ class C`1 'g__local|1_0' ( .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20b0 + // Method begins at RVA 0x20c8 // Code size 154 (0x9a) .maxstack 4 IL_0000: ldc.i4.8 @@ -7490,7 +7490,7 @@ class C`1 o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2147 + // Method begins at RVA 0x215f // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -7508,7 +7508,7 @@ 01 00 24 3c 4d 3e 24 44 38 38 34 44 31 45 31 33 39 38 38 45 38 33 38 30 31 42 37 35 37 34 36 39 34 45 31 43 32 43 35 00 00 ) - // Method begins at RVA 0x20c4 + // Method begins at RVA 0x20dc // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -7529,7 +7529,7 @@ .field public !T t1 .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { - // Method begins at RVA 0x20cb + // Method begins at RVA 0x20e3 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -7542,7 +7542,7 @@ .method assembly hidebysig !U u2 ) cil managed { - // Method begins at RVA 0x20d4 + // Method begins at RVA 0x20ec // Code size 103 (0x67) .maxstack 4 IL_0000: ldc.i4.5 @@ -7595,7 +7595,7 @@ class C`1 o, .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 57 (0x39) .maxstack 3 .locals init ( @@ -7763,7 +7763,7 @@ class C`1 o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x21a7 + // Method begins at RVA 0x21bf // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -7781,7 +7781,7 @@ 01 00 24 3c 4d 3e 24 44 38 38 34 44 31 45 31 33 39 38 38 45 38 33 38 30 31 42 37 35 37 34 36 39 34 45 31 43 32 43 35 00 00 ) - // Method begins at RVA 0x209c + // Method begins at RVA 0x20b3 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -7830,7 +7830,7 @@ instance void .ctor ( .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20a3 + // Method begins at RVA 0x20ba // Code size 25 (0x19) .maxstack 8 IL_0000: ldarg.0 @@ -7850,7 +7850,7 @@ instance void System.IDisposable.Dispose () cil managed 01 00 00 00 ) .override method instance void [mscorlib]System.IDisposable::Dispose() - // Method begins at RVA 0x20bd + // Method begins at RVA 0x20d4 // Code size 9 (0x9) .maxstack 8 IL_0000: ldarg.0 @@ -7862,7 +7862,7 @@ .method private final hidebysig newslot virtual instance bool MoveNext () cil managed { .override method instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() - // Method begins at RVA 0x20c8 + // Method begins at RVA 0x20e0 // Code size 97 (0x61) .maxstack 4 .locals init ( @@ -7913,7 +7913,7 @@ .method private final hidebysig specialname newslot virtual 01 00 00 00 ) .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() - // Method begins at RVA 0x2135 + // Method begins at RVA 0x214d // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -7927,7 +7927,7 @@ instance void System.Collections.IEnumerator.Reset () cil managed 01 00 00 00 ) .override method instance void [mscorlib]System.Collections.IEnumerator::Reset() - // Method begins at RVA 0x213d + // Method begins at RVA 0x2155 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -7940,7 +7940,7 @@ instance object System.Collections.IEnumerator.get_Current () cil managed 01 00 00 00 ) .override method instance object [mscorlib]System.Collections.IEnumerator::get_Current() - // Method begins at RVA 0x2135 + // Method begins at RVA 0x214d // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -7954,7 +7954,7 @@ .method private final hidebysig newslot virtual 01 00 00 00 ) .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() - // Method begins at RVA 0x2144 + // Method begins at RVA 0x215c // Code size 79 (0x4f) .maxstack 2 .locals init ( @@ -7999,7 +7999,7 @@ instance class [mscorlib]System.Collections.IEnumerator System.Collections.IEnum 01 00 00 00 ) .override method instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() - // Method begins at RVA 0x219f + // Method begins at RVA 0x21b7 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -8031,7 +8031,7 @@ 3e 64 5f 5f 31 60 32 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 29 (0x1d) .maxstack 8 IL_0000: ldc.i4.s -2 @@ -8166,7 +8166,7 @@ class C`1 o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x21d2 + // Method begins at RVA 0x21ea // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -8184,7 +8184,7 @@ 01 00 24 3c 4d 3e 24 44 38 38 34 44 31 45 31 33 39 38 38 45 38 33 38 30 31 42 37 35 37 34 36 39 34 45 31 43 32 43 35 00 00 ) - // Method begins at RVA 0x20d2 + // Method begins at RVA 0x20ea // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -8210,7 +8210,7 @@ .method private final hidebysig newslot virtual instance void MoveNext () cil managed { .override method instance void [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext() - // Method begins at RVA 0x20dc + // Method begins at RVA 0x20f4 // Code size 202 (0xca) .maxstack 3 .locals init ( @@ -8307,7 +8307,7 @@ class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine 01 00 00 00 ) .override method instance void [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) - // Method begins at RVA 0x21c4 + // Method begins at RVA 0x21dc // Code size 13 (0xd) .maxstack 8 IL_0000: ldarg.0 @@ -8332,7 +8332,7 @@ 3e 64 5f 5f 31 60 32 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 71 (0x47) .maxstack 2 .locals init ( @@ -8497,7 +8497,7 @@ object _ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2082 + // Method begins at RVA 0x2099 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -8515,7 +8515,7 @@ 01 00 24 3c 4d 3e 24 33 44 33 34 38 33 38 43 42 32 43 37 33 41 34 45 34 30 36 41 45 33 39 30 35 37 38 37 44 39 37 44 00 00 ) - // Method begins at RVA 0x207b + // Method begins at RVA 0x2092 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -8529,7 +8529,7 @@ string M ( string s ) cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 19 (0x13) .maxstack 8 IL_0000: ldarg.0 @@ -8992,7 +8992,7 @@ object _ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20b2 + // Method begins at RVA 0x20ca // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -9010,7 +9010,7 @@ 01 00 24 3c 4d 3e 24 33 44 33 34 38 33 38 43 42 32 43 37 33 41 34 45 34 30 36 41 45 33 39 30 35 37 38 37 44 39 37 44 00 00 ) - // Method begins at RVA 0x20ab + // Method begins at RVA 0x20c3 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9034,7 +9034,7 @@ string M ( string s ) cil managed { - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 24 (0x18) .maxstack 2 .locals init ( @@ -9058,7 +9058,7 @@ valuetype Extensions/'<>c__DisplayClass1_0'& '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x208c + // Method begins at RVA 0x20a4 // Code size 30 (0x1e) .maxstack 8 IL_0000: ldarg.0 @@ -9144,7 +9144,7 @@ object _ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20f5 + // Method begins at RVA 0x210d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -9162,7 +9162,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20f5 + // Method begins at RVA 0x210d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -9180,7 +9180,7 @@ 01 00 24 3c 4d 3e 24 33 44 33 34 38 33 38 43 42 32 43 37 33 41 34 45 34 30 36 41 45 33 39 30 35 37 38 37 44 39 37 44 00 00 ) - // Method begins at RVA 0x20ee + // Method begins at RVA 0x2106 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9198,7 +9198,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x20ee + // Method begins at RVA 0x2106 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9232,7 +9232,7 @@ string M ( string s ) cil managed { - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 24 (0x18) .maxstack 2 .locals init ( @@ -9255,7 +9255,7 @@ string M ( int32 x ) cil managed { - // Method begins at RVA 0x208c + // Method begins at RVA 0x20a4 // Code size 24 (0x18) .maxstack 2 .locals init ( @@ -9279,7 +9279,7 @@ valuetype Extensions/'<>c__DisplayClass1_0'& '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20b0 + // Method begins at RVA 0x20c8 // Code size 30 (0x1e) .maxstack 8 IL_0000: ldarg.0 @@ -9303,7 +9303,7 @@ valuetype Extensions/'<>c__DisplayClass3_0'& '' .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20cf + // Method begins at RVA 0x20e7 // Code size 30 (0x1e) .maxstack 8 IL_0000: ldarg.0 @@ -9404,7 +9404,7 @@ object _ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20ba + // Method begins at RVA 0x20d1 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -9422,7 +9422,7 @@ 01 00 24 3c 4d 3e 24 33 44 33 34 38 33 38 43 42 32 43 37 33 41 34 45 34 30 36 41 45 33 39 30 35 37 38 37 44 39 37 44 00 00 ) - // Method begins at RVA 0x208c + // Method begins at RVA 0x20a3 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9442,7 +9442,7 @@ .field public string s .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { - // Method begins at RVA 0x2093 + // Method begins at RVA 0x20aa // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -9452,7 +9452,7 @@ .maxstack 8 .method assembly hidebysig instance string 'b__0' () cil managed { - // Method begins at RVA 0x209b + // Method begins at RVA 0x20b2 // Code size 30 (0x1e) .maxstack 8 IL_0000: ldarg.0 @@ -9476,7 +9476,7 @@ string M ( string s ) cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 36 (0x24) .maxstack 8 IL_0000: newobj instance void Extensions/'<>c__DisplayClass1_0'::.ctor() @@ -9604,7 +9604,7 @@ object _ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x216b + // Method begins at RVA 0x217f // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -9622,7 +9622,7 @@ 01 00 24 3c 4d 3e 24 33 44 33 34 38 33 38 43 42 32 43 37 33 41 34 45 34 30 36 41 45 33 39 30 35 37 38 37 44 39 37 44 00 00 ) - // Method begins at RVA 0x207e + // Method begins at RVA 0x2095 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9669,7 +9669,7 @@ instance void .ctor ( .custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2085 + // Method begins at RVA 0x209c // Code size 25 (0x19) .maxstack 8 IL_0000: ldarg.0 @@ -9689,7 +9689,7 @@ instance void System.IDisposable.Dispose () cil managed 01 00 00 00 ) .override method instance void [mscorlib]System.IDisposable::Dispose() - // Method begins at RVA 0x209f + // Method begins at RVA 0x20b6 // Code size 9 (0x9) .maxstack 8 IL_0000: ldarg.0 @@ -9701,7 +9701,7 @@ .method private final hidebysig newslot virtual instance bool MoveNext () cil managed { .override method instance bool [mscorlib]System.Collections.IEnumerator::MoveNext() - // Method begins at RVA 0x20ac + // Method begins at RVA 0x20c0 // Code size 76 (0x4c) .maxstack 3 .locals init ( @@ -9751,7 +9751,7 @@ .method private final hidebysig specialname newslot virtual 01 00 00 00 ) .override method instance !0 class [mscorlib]System.Collections.Generic.IEnumerator`1::get_Current() - // Method begins at RVA 0x2104 + // Method begins at RVA 0x2118 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -9765,7 +9765,7 @@ instance void System.Collections.IEnumerator.Reset () cil managed 01 00 00 00 ) .override method instance void [mscorlib]System.Collections.IEnumerator::Reset() - // Method begins at RVA 0x210c + // Method begins at RVA 0x2120 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -9778,7 +9778,7 @@ instance object System.Collections.IEnumerator.get_Current () cil managed 01 00 00 00 ) .override method instance object [mscorlib]System.Collections.IEnumerator::get_Current() - // Method begins at RVA 0x2104 + // Method begins at RVA 0x2118 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -9792,7 +9792,7 @@ .method private final hidebysig newslot virtual 01 00 00 00 ) .override method instance class [mscorlib]System.Collections.Generic.IEnumerator`1 class [mscorlib]System.Collections.Generic.IEnumerable`1::GetEnumerator() - // Method begins at RVA 0x2114 + // Method begins at RVA 0x2128 // Code size 67 (0x43) .maxstack 2 .locals init ( @@ -9833,7 +9833,7 @@ instance class [mscorlib]System.Collections.IEnumerator System.Collections.IEnum 01 00 00 00 ) .override method instance class [mscorlib]System.Collections.IEnumerator [mscorlib]System.Collections.IEnumerable::GetEnumerator() - // Method begins at RVA 0x2163 + // Method begins at RVA 0x2177 // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -9861,7 +9861,7 @@ string s 01 00 12 45 78 74 65 6e 73 69 6f 6e 73 2b 3c 4d 3e 64 5f 5f 31 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 22 (0x16) .maxstack 8 IL_0000: ldc.i4.s -2 @@ -9983,7 +9983,7 @@ object _ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x219a + // Method begins at RVA 0x21b2 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -10001,7 +10001,7 @@ 01 00 24 3c 4d 3e 24 33 44 33 34 38 33 38 43 42 32 43 37 33 41 34 45 34 30 36 41 45 33 39 30 35 37 38 37 44 39 37 44 00 00 ) - // Method begins at RVA 0x20b3 + // Method begins at RVA 0x20cb // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -10026,7 +10026,7 @@ .method private final hidebysig newslot virtual instance void MoveNext () cil managed { .override method instance void [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext() - // Method begins at RVA 0x20bc + // Method begins at RVA 0x20d4 // Code size 178 (0xb2) .maxstack 3 .locals init ( @@ -10122,7 +10122,7 @@ class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine 01 00 00 00 ) .override method instance void [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) - // Method begins at RVA 0x218c + // Method begins at RVA 0x21a4 // Code size 13 (0xd) .maxstack 8 IL_0000: ldarg.0 @@ -10143,7 +10143,7 @@ string s 01 00 12 45 78 74 65 6e 73 69 6f 6e 73 2b 3c 4d 3e 64 5f 5f 31 00 00 ) - // Method begins at RVA 0x2068 + // Method begins at RVA 0x2080 // Code size 63 (0x3f) .maxstack 2 .locals init ( @@ -10287,7 +10287,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -10302,7 +10302,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -10325,7 +10325,7 @@ string get_P ( object o ) cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -10595,7 +10595,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2075 + // Method begins at RVA 0x208c // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -10610,7 +10610,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -10631,7 +10631,7 @@ 39 42 46 30 32 38 30 00 00 .method public hidebysig static string get_P () cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: ldstr "P" @@ -10825,7 +10825,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2076 + // Method begins at RVA 0x208d // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -10840,7 +10840,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -10863,7 +10863,7 @@ string get_P ( object o ) cil managed { - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 7 (0x7) .maxstack 8 IL_0000: ldarg.0 @@ -10993,7 +10993,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20ee + // Method begins at RVA 0x2106 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11008,7 +11008,7 @@ 01 00 24 3c 4d 3e 24 44 33 45 41 43 30 31 31 44 39 33 33 39 35 41 33 45 35 30 44 46 30 36 39 43 45 36 32 37 31 30 32 00 00 ) - // Method begins at RVA 0x20e7 + // Method begins at RVA 0x20ff // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -11033,7 +11033,7 @@ void M2 ( .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2078 + // Method begins at RVA 0x208f // Code size 12 (0xc) .maxstack 8 IL_0000: call class [mscorlib]System.Func`1 Extensions::'g__local|1_0'() @@ -11047,7 +11047,7 @@ class [mscorlib]System.Func`1 'g__local|1_0' () cil managed .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2085 + // Method begins at RVA 0x209c // Code size 28 (0x1c) .maxstack 8 IL_0000: ldsfld class [mscorlib]System.Func`1 class Extensions/'O__1_0`3'::'<0>__M1' @@ -11157,7 +11157,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20b9 + // Method begins at RVA 0x20d0 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11172,7 +11172,7 @@ 01 00 24 3c 4d 3e 24 44 33 45 41 43 30 31 31 44 39 33 33 39 35 41 33 45 35 30 44 46 30 36 39 43 45 36 32 37 31 30 32 00 00 ) - // Method begins at RVA 0x20b2 + // Method begins at RVA 0x20c9 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -11197,7 +11197,7 @@ void M2 ( .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2078 + // Method begins at RVA 0x208f // Code size 11 (0xb) .maxstack 8 IL_0000: call class [mscorlib]System.Action Extensions::'g__local|1_0'() @@ -11210,7 +11210,7 @@ class [mscorlib]System.Action 'g__local|1_0' () cil managed .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2084 + // Method begins at RVA 0x209b // Code size 28 (0x1c) .maxstack 8 IL_0000: ldsfld class [mscorlib]System.Action class Extensions/'<>O__1_0`1'::'<0>__M1' @@ -11318,7 +11318,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11333,7 +11333,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x208e + // Method begins at RVA 0x20a5 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -11358,7 +11358,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11369,7 +11369,7 @@ class [mscorlib]System.Action 'g__local|1_0' () cil managed .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 28 (0x1c) .maxstack 8 IL_0000: ldsfld class [mscorlib]System.Action Extensions/'<>O'::'<0>__M1' @@ -11472,7 +11472,7 @@ .method private hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209d + // Method begins at RVA 0x20b4 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11487,7 +11487,7 @@ 01 00 24 3c 4d 3e 24 44 33 45 41 43 30 31 31 44 39 33 33 39 35 41 33 45 35 30 44 46 30 36 39 43 45 36 32 37 31 30 32 00 00 ) - // Method begins at RVA 0x2096 + // Method begins at RVA 0x20ad // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -11512,7 +11512,7 @@ class [mscorlib]System.Action M2 ( .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 28 (0x1c) .maxstack 8 IL_0000: ldsfld class [mscorlib]System.Action class Extensions/'<>O__1_0`1'::'<0>__local' @@ -11532,7 +11532,7 @@ .method assembly hidebysig static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2084 + // Method begins at RVA 0x209b // Code size 17 (0x11) .maxstack 8 IL_0000: ldtoken !!T @@ -11628,7 +11628,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209d + // Method begins at RVA 0x20b4 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11643,7 +11643,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x2096 + // Method begins at RVA 0x20ad // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -11668,7 +11668,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 28 (0x1c) .maxstack 8 IL_0000: ldsfld class [mscorlib]System.Action Extensions/'<>O'::'<0>__local' @@ -11688,7 +11688,7 @@ .method assembly hidebysig static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2084 + // Method begins at RVA 0x209b // Code size 17 (0x11) .maxstack 8 IL_0000: ldtoken [mscorlib]System.Object @@ -11791,7 +11791,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2159 + // Method begins at RVA 0x2171 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -11806,7 +11806,7 @@ 01 00 24 3c 4d 3e 24 44 33 45 41 43 30 31 31 44 39 33 33 39 35 41 33 45 35 30 44 46 30 36 39 43 45 36 32 37 31 30 32 00 00 ) - // Method begins at RVA 0x2152 + // Method begins at RVA 0x216a // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -11831,7 +11831,7 @@ void M2 ( .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20a8 + // Method begins at RVA 0x20c0 // Code size 32 (0x20) .maxstack 4 .locals init ( @@ -11865,7 +11865,7 @@ .param [1] .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20d4 + // Method begins at RVA 0x20ec // Code size 114 (0x72) .maxstack 9 IL_0000: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1> class Extensions/'<>o__0|1`3'::'<>p__0' @@ -11998,7 +11998,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -12013,7 +12013,7 @@ 01 00 24 3c 4d 3e 24 44 33 45 41 43 30 31 31 44 39 33 33 39 35 41 33 45 35 30 44 46 30 36 39 43 45 36 32 37 31 30 32 00 00 ) - // Method begins at RVA 0x20d4 + // Method begins at RVA 0x20e8 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -12038,7 +12038,7 @@ void M2 ( .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -12056,7 +12056,7 @@ .param [1] .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206c + // Method begins at RVA 0x2080 // Code size 92 (0x5c) .maxstack 9 IL_0000: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1> class Extensions/'<>o__1`1'::'<>p__0' @@ -12175,7 +12175,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -12190,7 +12190,7 @@ 01 00 24 3c 4d 3e 24 31 31 39 41 41 32 38 31 43 31 34 33 35 34 37 35 36 33 32 35 30 43 41 46 38 39 42 34 38 41 37 36 00 00 ) - // Method begins at RVA 0x20c9 + // Method begins at RVA 0x20dd // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -12215,7 +12215,7 @@ object o .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -12232,7 +12232,7 @@ .param [1] .custom instance void [System.Core]System.Runtime.CompilerServices.DynamicAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206c + // Method begins at RVA 0x2080 // Code size 81 (0x51) .maxstack 9 IL_0000: ldsfld class [System.Core]System.Runtime.CompilerServices.CallSite`1> Extensions/'<>o__1'::'<>p__0' @@ -29854,7 +29854,7 @@ .method public hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209a + // Method begins at RVA 0x20b1 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -29869,7 +29869,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x2093 + // Method begins at RVA 0x20aa // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -29883,7 +29883,7 @@ 01 00 24 3c 4d 3e 24 43 34 33 45 32 36 37 35 43 37 42 42 46 39 32 38 34 41 46 32 32 46 42 38 41 39 42 46 30 32 38 30 00 00 ) - // Method begins at RVA 0x2093 + // Method begins at RVA 0x20aa // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -29894,7 +29894,7 @@ .maxstack 8 .method public hidebysig static void M () cil managed { - // Method begins at RVA 0x207b + // Method begins at RVA 0x2092 // Code size 11 (0xb) .maxstack 8 IL_0000: ldstr "ran " @@ -29904,7 +29904,7 @@ .maxstack 8 .method public hidebysig static void M2 () cil managed { - // Method begins at RVA 0x2087 + // Method begins at RVA 0x209e // Code size 11 (0xb) .maxstack 8 IL_0000: ldstr "ran2" @@ -33395,7 +33395,7 @@ class C`2 c .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -33410,7 +33410,7 @@ 01 00 24 3c 4d 3e 24 38 30 44 35 31 31 32 41 30 33 42 32 36 43 39 34 43 36 32 38 33 31 36 43 34 44 41 37 39 33 42 32 00 00 ) - // Method begins at RVA 0x2071 + // Method begins at RVA 0x2088 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -33436,7 +33436,7 @@ class C`2 c .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -33451,7 +33451,7 @@ 01 00 24 3c 4d 3e 24 32 32 33 37 45 38 35 32 44 32 45 39 46 34 38 45 30 43 43 36 42 46 32 46 44 35 32 38 44 41 32 41 00 00 ) - // Method begins at RVA 0x2071 + // Method begins at RVA 0x2088 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -33467,7 +33467,7 @@ class C`2 c .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -33480,7 +33480,7 @@ class C`2 c .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43089,7 +43089,7 @@ .method private hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43104,7 +43104,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43118,7 +43118,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43134,7 +43134,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43222,7 +43222,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43237,7 +43237,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43251,7 +43251,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43267,7 +43267,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43373,7 +43373,7 @@ .method private hidebysig specialname static .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43388,7 +43388,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43402,7 +43402,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43418,7 +43418,7 @@ 01 00 24 3c 4d 3e 24 42 41 34 31 43 46 45 32 42 35 45 44 41 45 42 38 43 31 42 39 30 36 32 46 35 39 45 44 34 44 36 39 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43513,7 +43513,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43528,7 +43528,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43542,7 +43542,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43558,7 +43558,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43699,7 +43699,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43714,7 +43714,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43728,7 +43728,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43744,7 +43744,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43855,7 +43855,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -43870,7 +43870,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43884,7 +43884,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43900,7 +43900,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -43989,7 +43989,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206e + // Method begins at RVA 0x2085 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -44004,7 +44004,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -44018,7 +44018,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -44034,7 +44034,7 @@ 01 00 24 3c 4d 3e 24 46 34 42 34 46 46 45 34 31 41 42 34 39 45 38 30 41 34 45 43 46 33 39 30 43 46 36 45 42 33 37 32 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -47272,7 +47272,7 @@ 01 00 02 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20ad + // Method begins at RVA 0x20c4 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -47293,7 +47293,7 @@ 01 00 01 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20ad + // Method begins at RVA 0x20c4 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -47308,7 +47308,7 @@ 01 00 24 3c 4d 3e 24 46 43 44 31 30 46 38 36 32 36 34 41 35 41 33 38 31 41 33 31 45 35 32 34 32 37 45 35 33 43 41 42 00 00 ) - // Method begins at RVA 0x20a6 + // Method begins at RVA 0x20bd // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -47322,7 +47322,7 @@ 01 00 24 3c 4d 3e 24 46 42 30 33 45 43 44 46 35 44 31 42 33 38 38 33 41 39 39 45 32 31 33 43 32 44 36 31 38 45 38 32 00 00 ) - // Method begins at RVA 0x20a6 + // Method begins at RVA 0x20bd // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -47341,7 +47341,7 @@ 01 00 02 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209d + // Method begins at RVA 0x20b4 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 @@ -47360,7 +47360,7 @@ 01 00 01 00 00 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x209d + // Method begins at RVA 0x20b4 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 @@ -48504,7 +48504,7 @@ .param [1] .custom instance void [System.Runtime]System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute::.ctor(bool) = ( 01 00 00 00 00 ) - // Method begins at RVA 0x2094 + // Method begins at RVA 0x20ac // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -48526,7 +48526,7 @@ .param [1] .custom instance void [System.Runtime]System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute::.ctor(bool) = ( 01 00 01 00 00 ) - // Method begins at RVA 0x2094 + // Method begins at RVA 0x20ac // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -48541,7 +48541,7 @@ 01 00 24 3c 4d 3e 24 37 30 37 33 41 35 38 46 43 41 39 41 46 31 37 38 46 37 38 43 39 44 46 42 32 45 43 31 43 46 43 42 00 00 ) - // Method begins at RVA 0x2096 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [System.Runtime]System.NotSupportedException::.ctor() @@ -48555,7 +48555,7 @@ 01 00 24 3c 4d 3e 24 42 32 43 35 38 36 32 46 34 37 35 44 32 36 46 46 30 45 39 43 42 36 46 32 42 33 30 41 41 33 46 37 00 00 ) - // Method begins at RVA 0x2096 + // Method begins at RVA 0x20ae // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [System.Runtime]System.NotSupportedException::.ctor() @@ -48575,7 +48575,7 @@ .param [1] .custom instance void [System.Runtime]System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute::.ctor(bool) = ( 01 00 00 00 00 ) - // Method begins at RVA 0x2091 + // Method begins at RVA 0x20a9 // Code size 2 (0x2) .maxstack 8 IL_0000: ldnull @@ -48593,7 +48593,7 @@ .param [1] .custom instance void [System.Runtime]System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute::.ctor(bool) = ( 01 00 01 00 00 ) - // Method begins at RVA 0x2091 + // Method begins at RVA 0x20a9 // Code size 2 (0x2) .maxstack 8 IL_0000: ldnull diff --git a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs index e2942316c6d92..54101b89366b2 100644 --- a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs +++ b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs @@ -26656,19 +26656,39 @@ 01 00 dc 17 00 00 02 00 54 02 0d 41 6c 6c 6f 77 4d 75 6c 74 69 70 6c 65 00 54 02 09 49 6e 68 65 72 69 74 65 64 00 ) + // Fields + .field private string 'k__BackingField' // Methods + .method assembly hidebysig specialname + instance string get_Name () cil managed + { + // Method begins at RVA 0x2067 + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string System.Runtime.CompilerServices.ExtensionMarkerAttribute::'k__BackingField' + IL_0006: ret + } // end of method ExtensionMarkerAttribute::get_Name .method public hidebysig specialname rtspecialname instance void .ctor ( string name ) cil managed { - // Method begins at RVA 0x2050 - // Code size 7 (0x7) + // Method begins at RVA 0x206f + // Code size 14 (0xe) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [mscorlib]System.Attribute::.ctor() - IL_0006: ret + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld string System.Runtime.CompilerServices.ExtensionMarkerAttribute::'k__BackingField' + IL_000d: ret } // end of method ExtensionMarkerAttribute::.ctor + // Properties + .property instance string Name() + { + .get instance string System.Runtime.CompilerServices.ExtensionMarkerAttribute::get_Name() + } } // end of class System.Runtime.CompilerServices.ExtensionMarkerAttribute """.Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]")); @@ -26919,6 +26939,84 @@ class C3<[ExtensionMarker("type parameter")] T> { } Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "ExtensionMarker").WithArguments("ExtensionMarker", "class, struct, enum, method, property, indexer, field, event, interface, delegate").WithLocation(44, 11)); } + [Fact] + public void ExtensionMarkerAttribute_08() + { + // implementation of Name property + var src = """ +var type = System.Type.GetType("E+$C43E2675C7BBF9284AF22FB8A9BF0280"); +var method = type.GetMethod("M", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); + +var attrType = System.Type.GetType("System.Runtime.CompilerServices.ExtensionMarkerAttribute"); +var nameProp = attrType.GetProperty("Name", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); + +var attr = System.Attribute.GetCustomAttribute(method, attrType); +var value = nameProp.GetValue(attr); +System.Console.Write(value); + +public static class E +{ + extension(object o) + { + public void M() { } + } +} +"""; + var comp = CreateCompilation(src); + var verifier = CompileAndVerify(comp, expectedOutput: "$119AA281C143547563250CAF89B48A76").VerifyDiagnostics(); + + verifier.VerifyTypeIL("ExtensionMarkerAttribute", """ +.class private auto ansi sealed beforefieldinit System.Runtime.CompilerServices.ExtensionMarkerAttribute + extends [mscorlib]System.Attribute +{ + .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( + 01 00 00 00 + ) + .custom instance void Microsoft.CodeAnalysis.EmbeddedAttribute::.ctor() = ( + 01 00 00 00 + ) + .custom instance void [mscorlib]System.AttributeUsageAttribute::.ctor(valuetype [mscorlib]System.AttributeTargets) = ( + 01 00 dc 17 00 00 02 00 54 02 0d 41 6c 6c 6f 77 + 4d 75 6c 74 69 70 6c 65 00 54 02 09 49 6e 68 65 + 72 69 74 65 64 00 + ) + // Fields + .field private string 'k__BackingField' + // Methods + .method assembly hidebysig specialname + instance string get_Name () cil managed + { + // Method begins at RVA 0x2067 + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: ldfld string System.Runtime.CompilerServices.ExtensionMarkerAttribute::'k__BackingField' + IL_0006: ret + } // end of method ExtensionMarkerAttribute::get_Name + .method public hidebysig specialname rtspecialname + instance void .ctor ( + string name + ) cil managed + { + // Method begins at RVA 0x206f + // Code size 14 (0xe) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Attribute::.ctor() + IL_0006: ldarg.0 + IL_0007: ldarg.1 + IL_0008: stfld string System.Runtime.CompilerServices.ExtensionMarkerAttribute::'k__BackingField' + IL_000d: ret + } // end of method ExtensionMarkerAttribute::.ctor + // Properties + .property instance string Name() + { + .get instance string System.Runtime.CompilerServices.ExtensionMarkerAttribute::get_Name() + } +} // end of class System.Runtime.CompilerServices.ExtensionMarkerAttribute +""".Replace("[mscorlib]", ExecutionConditionUtil.IsMonoOrCoreClr ? "[netstandard]" : "[mscorlib]")); + } + [Fact] public void Grouping_01() { @@ -30584,7 +30682,7 @@ class C`1 source .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2133 + // Method begins at RVA 0x214b // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -30602,7 +30700,7 @@ 01 00 24 3c 4d 3e 24 35 38 36 36 30 34 36 38 38 32 38 31 43 39 31 35 37 44 46 46 45 37 35 45 39 42 46 39 33 44 46 33 00 00 ) - // Method begins at RVA 0x212c + // Method begins at RVA 0x2144 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -30616,7 +30714,7 @@ 01 00 24 3c 4d 3e 24 35 38 36 36 30 34 36 38 38 32 38 31 43 39 31 35 37 44 46 46 45 37 35 45 39 42 46 39 33 44 46 33 00 00 ) - // Method begins at RVA 0x212c + // Method begins at RVA 0x2144 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -30634,7 +30732,7 @@ class [mscorlib]System.Func`3 resultSelector .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20cb + // Method begins at RVA 0x20e3 // Code size 16 (0x10) .maxstack 8 IL_0000: ldstr "SelectMany" @@ -30650,7 +30748,7 @@ class C`1 source .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x20dc + // Method begins at RVA 0x20f4 // Code size 16 (0x10) .maxstack 8 IL_0000: ldstr "Cast " @@ -32048,7 +32146,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -32063,7 +32161,7 @@ 01 00 24 3c 4d 3e 24 37 33 46 35 35 36 30 42 45 35 35 41 30 41 30 42 32 33 39 30 35 31 35 33 44 42 35 31 31 46 34 45 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -32083,7 +32181,7 @@ .param type T .custom instance void AAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -32552,7 +32650,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -32567,7 +32665,7 @@ 01 00 24 3c 4d 3e 24 41 38 38 38 45 30 41 45 45 46 42 34 41 42 31 38 37 32 43 43 42 38 45 37 44 35 34 37 32 43 43 38 00 00 ) - // Method begins at RVA 0x2069 + // Method begins at RVA 0x2080 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -32587,7 +32685,7 @@ .param type T .custom instance void System.Runtime.CompilerServices.IsUnmanagedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -32811,7 +32909,7 @@ int32 i .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2071 + // Method begins at RVA 0x2088 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -32830,7 +32928,7 @@ .param [0] .custom instance void AAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206a + // Method begins at RVA 0x2081 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -32857,7 +32955,7 @@ .param [0] .custom instance void AAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 2 (0x2) .maxstack 8 IL_0000: ldc.i4.0 @@ -32975,7 +33073,7 @@ int32 i1 .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 1 (0x1) .maxstack 8 IL_0000: ret @@ -32990,7 +33088,7 @@ 01 00 24 3c 4d 3e 24 35 33 31 45 37 41 43 34 35 44 34 34 33 41 45 32 32 34 33 45 37 46 46 41 42 39 34 35 35 44 36 30 00 00 ) - // Method begins at RVA 0x2071 + // Method begins at RVA 0x2088 // Code size 6 (0x6) .maxstack 8 IL_0000: newobj instance void [mscorlib]System.NotSupportedException::.ctor() @@ -33006,7 +33104,7 @@ int32 i1 .custom instance void [mscorlib]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x2067 + // Method begins at RVA 0x207e // Code size 7 (0x7) .maxstack 8 IL_0000: ldc.i4.0 @@ -33032,7 +33130,7 @@ .param [1] .custom instance void CAttribute::.ctor() = ( 01 00 00 00 ) - // Method begins at RVA 0x206f + // Method begins at RVA 0x2086 // Code size 1 (0x1) .maxstack 8 IL_0000: ret From 5ff0615a7f9fabd991052623f60f8bb463bbdf6d Mon Sep 17 00:00:00 2001 From: Julien Couvreur Date: Thu, 25 Sep 2025 06:07:43 -0700 Subject: [PATCH 2/5] Address feedback --- .../SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs index 3b36656a56d3e..2abc7e4130486 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs @@ -69,7 +69,7 @@ public override ImmutableArray GetMembers(string name) } public override IEnumerable MemberNames - => [_nameField.Name, PropertyName, WellKnownMemberNames.InstanceConstructorName]; + => [FieldName, PropertyName, WellKnownMemberNames.InstanceConstructorName]; private sealed class ConstructorSymbol : SynthesizedInstanceConstructor { From ed6eb15a8268fe90ad4023a54a23516c08e41039 Mon Sep 17 00:00:00 2001 From: Julien Couvreur Date: Thu, 25 Sep 2025 12:14:07 -0700 Subject: [PATCH 3/5] Address feedback --- ...eddedExtensionMarkerNameAttributeSymbol.cs | 61 +++++++------------ .../Test/Emit3/Semantics/ExtensionTests2.cs | 4 +- 2 files changed, 24 insertions(+), 41 deletions(-) diff --git a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs index 2abc7e4130486..822022111d985 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs @@ -31,12 +31,25 @@ public SynthesizedEmbeddedExtensionMarkerAttributeSymbol( { Debug.Assert(FieldName == GeneratedNames.MakeBackingFieldName(PropertyName)); - _nameField = new SynthesizedFieldSymbol(this, systemStringType, FieldName); + _nameField = new SynthesizedFieldSymbol(this, systemStringType, FieldName, isReadOnly: true); _nameProperty = new NamePropertySymbol(_nameField); - _constructors = [new ConstructorSymbol(this, systemStringType, _nameField)]; + _constructors = [new SynthesizedEmbeddedAttributeConstructorWithBodySymbol(this, getConstructorParameters, getConstructorBody)]; // Ensure we never get out of sync with the description Debug.Assert(_constructors.Length == AttributeDescription.ExtensionMarkerAttribute.Signatures.Length); + + ImmutableArray getConstructorParameters(MethodSymbol ctor) + { + return [SynthesizedParameterSymbol.Create(ctor, TypeWithAnnotations.Create(systemStringType), ordinal: 0, RefKind.None, name: "name")]; + } + + void getConstructorBody(SyntheticBoundNodeFactory f, ArrayBuilder statements, ImmutableArray parameters) + { + // this._namedField = name; + statements.Add(f.Assignment( + f.Field(f.This(), this._nameField), + f.Parameter(parameters[0]))); + } } public override ImmutableArray Constructors => _constructors; @@ -71,35 +84,6 @@ public override ImmutableArray GetMembers(string name) public override IEnumerable MemberNames => [FieldName, PropertyName, WellKnownMemberNames.InstanceConstructorName]; - private sealed class ConstructorSymbol : SynthesizedInstanceConstructor - { - private readonly ImmutableArray _parameters; - private readonly SynthesizedFieldSymbol _nameField; - - internal ConstructorSymbol( - NamedTypeSymbol containingType, - TypeSymbol systemStringType, - SynthesizedFieldSymbol nameField) : - base(containingType) - { - _parameters = [SynthesizedParameterSymbol.Create(containingType, TypeWithAnnotations.Create(systemStringType), ordinal: 0, RefKind.None, name: "name")]; - _nameField = nameField; - } - - public override ImmutableArray Parameters => _parameters; - - internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) - { - GenerateMethodBodyCore(compilationState, diagnostics); - } - - internal override void GenerateMethodBodyStatements(SyntheticBoundNodeFactory f, ArrayBuilder statements, BindingDiagnosticBag diagnostics) - { - // this._namedField = name; - statements.Add(f.Assignment(f.Field(f.This(), _nameField), f.Parameter(_parameters[0]))); - } - } - private sealed class NamePropertySymbol : PropertySymbol { private readonly SynthesizedFieldSymbol _backingField; @@ -107,7 +91,7 @@ private sealed class NamePropertySymbol : PropertySymbol public NamePropertySymbol(SynthesizedFieldSymbol backingField) { _backingField = backingField; - GetMethod = new NameGetAccessorMethodSymbol(this, backingField); + GetMethod = new NameGetAccessorMethodSymbol(this); } public override string Name => PropertyName; @@ -117,7 +101,7 @@ public NamePropertySymbol(SynthesizedFieldSymbol backingField) public override MethodSymbol GetMethod { get; } public override MethodSymbol? SetMethod => null; public override Symbol ContainingSymbol => _backingField.ContainingSymbol; - public override Accessibility DeclaredAccessibility => Accessibility.Internal; + public override Accessibility DeclaredAccessibility => Accessibility.Public; public override ImmutableArray Locations => []; public override ImmutableArray DeclaringSyntaxReferences => []; @@ -142,12 +126,10 @@ public NamePropertySymbol(SynthesizedFieldSymbol backingField) private sealed partial class NameGetAccessorMethodSymbol : SynthesizedMethodSymbol { private readonly NamePropertySymbol _nameProperty; - private readonly SynthesizedFieldSymbol _backingField; - public NameGetAccessorMethodSymbol(NamePropertySymbol nameProperty, SynthesizedFieldSymbol backingField) + public NameGetAccessorMethodSymbol(NamePropertySymbol nameProperty) { _nameProperty = nameProperty; - _backingField = backingField; } public override string Name => "get_Name"; @@ -160,16 +142,17 @@ public NameGetAccessorMethodSymbol(NamePropertySymbol nameProperty, SynthesizedF internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { - SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics); + SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, CSharpSyntaxTree.Dummy.GetRoot(), compilationState, diagnostics); F.CurrentFunction = this.OriginalDefinition; try { // return this._backingField; - F.CloseMethod(F.Return(F.Field(F.This(), _backingField))); + F.CloseMethod(F.Return(F.Field(F.This(), ((SynthesizedEmbeddedExtensionMarkerAttributeSymbol)_nameProperty.ContainingSymbol)._nameField))); } catch (SyntheticBoundNodeFactory.MissingPredefinedMember ex) { + F.CloseMethod(F.ThrowNull()); diagnostics.Add(ex.Diagnostic); } } @@ -191,7 +174,7 @@ internal override void GenerateMethodBody(TypeCompilationState compilationState, public override ImmutableArray Parameters => []; public override ImmutableArray ExplicitInterfaceImplementations => []; public override ImmutableArray Locations => []; - public override Accessibility DeclaredAccessibility => Accessibility.Internal; + public override Accessibility DeclaredAccessibility => ContainingSymbol.DeclaredAccessibility; public override bool IsVirtual => false; public override bool IsOverride => false; public override bool IsAbstract => false; diff --git a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs index 54101b89366b2..55e81a04fe487 100644 --- a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs +++ b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs @@ -26657,7 +26657,7 @@ 4d 75 6c 74 69 70 6c 65 00 54 02 09 49 6e 68 65 72 69 74 65 64 00 ) // Fields - .field private string 'k__BackingField' + .field private initonly string 'k__BackingField' // Methods .method assembly hidebysig specialname instance string get_Name () cil managed @@ -26981,7 +26981,7 @@ 4d 75 6c 74 69 70 6c 65 00 54 02 09 49 6e 68 65 72 69 74 65 64 00 ) // Fields - .field private string 'k__BackingField' + .field private initonly string 'k__BackingField' // Methods .method assembly hidebysig specialname instance string get_Name () cil managed From 249f93492d5c15a0199b14e4b39e51f7fadd48a3 Mon Sep 17 00:00:00 2001 From: Julien Couvreur Date: Thu, 25 Sep 2025 13:05:59 -0700 Subject: [PATCH 4/5] CastUp --- .../SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs index 822022111d985..dd5caa579ecd0 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs @@ -76,7 +76,7 @@ public override ImmutableArray GetMembers(string name) { FieldName => [_nameField], PropertyName => [_nameProperty], - WellKnownMemberNames.InstanceConstructorName => [_constructors[0]], + WellKnownMemberNames.InstanceConstructorName => ImmutableArray.CastUp(_constructors), _ => [] }; } From 22bb8d21aebd8f760df1dbdaa52c71e647d8d26b Mon Sep 17 00:00:00 2001 From: Julien Couvreur Date: Fri, 26 Sep 2025 04:19:07 -0700 Subject: [PATCH 5/5] Address feedback --- ...SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs | 6 +++--- .../CSharp/Test/Emit3/Semantics/ExtensionTests2.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs index dd5caa579ecd0..52fb05b9c0d3a 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs @@ -86,7 +86,7 @@ public override IEnumerable MemberNames private sealed class NamePropertySymbol : PropertySymbol { - private readonly SynthesizedFieldSymbol _backingField; + internal readonly SynthesizedFieldSymbol _backingField; public NamePropertySymbol(SynthesizedFieldSymbol backingField) { @@ -148,7 +148,7 @@ internal override void GenerateMethodBody(TypeCompilationState compilationState, try { // return this._backingField; - F.CloseMethod(F.Return(F.Field(F.This(), ((SynthesizedEmbeddedExtensionMarkerAttributeSymbol)_nameProperty.ContainingSymbol)._nameField))); + F.CloseMethod(F.Return(F.Field(F.This(), _nameProperty._backingField))); } catch (SyntheticBoundNodeFactory.MissingPredefinedMember ex) { @@ -174,7 +174,7 @@ internal override void GenerateMethodBody(TypeCompilationState compilationState, public override ImmutableArray Parameters => []; public override ImmutableArray ExplicitInterfaceImplementations => []; public override ImmutableArray Locations => []; - public override Accessibility DeclaredAccessibility => ContainingSymbol.DeclaredAccessibility; + public override Accessibility DeclaredAccessibility => _nameProperty.DeclaredAccessibility; public override bool IsVirtual => false; public override bool IsOverride => false; public override bool IsAbstract => false; diff --git a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs index 55e81a04fe487..35849c020d276 100644 --- a/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs +++ b/src/Compilers/CSharp/Test/Emit3/Semantics/ExtensionTests2.cs @@ -26659,7 +26659,7 @@ 72 69 74 65 64 00 // Fields .field private initonly string 'k__BackingField' // Methods - .method assembly hidebysig specialname + .method public hidebysig specialname instance string get_Name () cil managed { // Method begins at RVA 0x2067 @@ -26948,7 +26948,7 @@ public void ExtensionMarkerAttribute_08() var method = type.GetMethod("M", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); var attrType = System.Type.GetType("System.Runtime.CompilerServices.ExtensionMarkerAttribute"); -var nameProp = attrType.GetProperty("Name", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); +var nameProp = attrType.GetProperty("Name", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance); var attr = System.Attribute.GetCustomAttribute(method, attrType); var value = nameProp.GetValue(attr); @@ -26983,7 +26983,7 @@ 72 69 74 65 64 00 // Fields .field private initonly string 'k__BackingField' // Methods - .method assembly hidebysig specialname + .method public hidebysig specialname instance string get_Name () cil managed { // Method begins at RVA 0x2067