// To extend use: // see https://lab.razor.fyi/#fVHNbhMxEFYRqrBP0CcYbpsDVlioVDU_UrSNUBCqImVPnHC8k8TgtRd7tiSqcuMh-gbceQBeihdA66bJNlK5WDPzfTPffGP-65TzqXdLL0uhwtndaR20XcJsEwjLHm9nInPGoCLtbBAf0KLX6j-MSVnWJOcGjzhXWi6tC6RVeBoRmStwZKXZBH1M-6Tt96NSvvIoC22XT9VFLsO30OPcyhJDJRXCJJutpK8aIXGFypWVNuhFjoFCfDMZMIipR6INv-VMW0JvpYFAkrQCZWQIMF4T2qCdnXpXoSeNgbNbzhg-AP18mEwOl-nnQ1D7rAM_VugRcrgE68jWxnAW-1lVz41WMHfOwCSMy4o2MGj3iszVlmAwgG6Ptzq0JWgMQBzDlvgQMY9Uewvv017Mt_ENezzm2_aoG6cLGBXFZHHt6Lo2JslBE5adhnPfpBeQNCV4PYBm_QjtMNZadlQUkddpaT_SylPIZKB-ng6TxoK2Ba7390nhEvKD6s5JkqedxM2_oqJOS2tssERLI0ruh0TJR2K7P4z-ZjHef2RyMNcsueVsy7f87NW56Irum1Sk5-8uuuJt9-LjM20-sxd3P__-_rN4-fzLyfrkHw // created using https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-tools/NuGet/Microsoft.Net.Compilers.Toolset/overview/5.0.0-2.25380.108 .class private auto ansi abstract sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV1 extends [System.Runtime]System.Object { .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableContextAttribute::.ctor(uint8) = ( 01 00 01 00 00 ) .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8) = ( 01 00 00 00 00 ) .custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) // Nested Types .class nested public auto ansi sealed specialname beforefieldinit '<>E__0`1' extends [System.Runtime]System.Object { // Methods .method private hidebysig specialname static void '$' ( class [System.Runtime]System.Collections.Generic.ICollection`1 collection ) cil managed { .custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Method begins at RVA 0x209d // Header size: 1 // Code size: 1 (0x1) .maxstack 8 IL_0000: ret } // end of method '<>E__0`1'::'$' .method public hidebysig specialname instance bool get_IsEmpty () cil managed { // Method begins at RVA 0x209f // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: ldnull IL_0001: throw } // end of method '<>E__0`1'::get_IsEmpty .method public hidebysig specialname instance int32 get_Test () cil managed { // Method begins at RVA 0x209f // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: ldnull IL_0001: throw } // end of method '<>E__0`1'::get_Test .method public hidebysig specialname instance void set_Test ( int32 'value' ) cil managed { // Method begins at RVA 0x209f // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: ldnull IL_0001: throw } // end of method '<>E__0`1'::set_Test .method public hidebysig instance void AddIfNotNull ( !T item ) cil managed { // Method begins at RVA 0x209f // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: ldnull IL_0001: throw } // end of method '<>E__0`1'::AddIfNotNull .method public hidebysig instance !!T2 Cast<(!T) T2> ( int32 index ) cil managed { .param type T2 .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8) = ( 01 00 00 00 00 ) // Method begins at RVA 0x209f // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: ldnull IL_0001: throw } // end of method '<>E__0`1'::Cast .method public hidebysig static void StaticExtension () cil managed { // Method begins at RVA 0x209f // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: ldnull IL_0001: throw } // end of method '<>E__0`1'::StaticExtension // Properties .property instance bool IsEmpty() { .get instance bool ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV1/'<>E__0`1'::get_IsEmpty() } .property instance int32 Test() { .get instance int32 ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV1/'<>E__0`1'::get_Test() .set instance void ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV1/'<>E__0`1'::set_Test(int32) } } // end of class <>E__0`1 // Methods .method public hidebysig static bool get_IsEmpty ( class [System.Runtime]System.Collections.Generic.ICollection`1 collection ) cil managed { // Method begins at RVA 0x2050 // Header size: 1 // Code size: 10 (0xa) .maxstack 8 IL_0000: ldarg.0 IL_0001: callvirt instance int32 class [System.Runtime]System.Collections.Generic.ICollection`1::get_Count() IL_0006: ldc.i4.0 IL_0007: ceq IL_0009: ret } // end of method ExtensionProperties::get_IsEmpty .method public hidebysig static int32 get_Test ( class [System.Runtime]System.Collections.Generic.ICollection`1 collection ) cil managed { // Method begins at RVA 0x205b // Header size: 1 // Code size: 4 (0x4) .maxstack 8 IL_0000: nop IL_0001: ldc.i4.s 42 IL_0003: ret } // end of method ExtensionProperties::get_Test .method public hidebysig static void set_Test ( class [System.Runtime]System.Collections.Generic.ICollection`1 collection, int32 'value' ) cil managed { // Method begins at RVA 0x2060 // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: nop IL_0001: ret } // end of method ExtensionProperties::set_Test .method public hidebysig static void AddIfNotNull ( class [System.Runtime]System.Collections.Generic.ICollection`1 collection, !!T item ) cil managed { .custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) // Method begins at RVA 0x2064 // Header size: 12 // Code size: 25 (0x19) .maxstack 2 .locals init ( [0] bool ) IL_0000: nop IL_0001: ldarg.1 IL_0002: box !!T IL_0007: ldnull IL_0008: cgt.un IL_000a: stloc.0 IL_000b: ldloc.0 IL_000c: brfalse.s IL_0018 IL_000e: nop IL_000f: ldarg.0 IL_0010: ldarg.1 IL_0011: callvirt instance void class [System.Runtime]System.Collections.Generic.ICollection`1::Add(!0) IL_0016: nop IL_0017: nop IL_0018: ret } // end of method ExtensionProperties::AddIfNotNull .method public hidebysig static !!T2 Cast ( class [System.Runtime]System.Collections.Generic.ICollection`1 collection, int32 index ) cil managed { .custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = ( 01 00 00 00 ) // Method begins at RVA 0x2089 // Header size: 1 // Code size: 19 (0x13) .maxstack 8 IL_0000: nop IL_0001: ldarg.0 IL_0002: ldarg.1 IL_0003: call !!0 [System.Linq]System.Linq.Enumerable::ElementAt(class [System.Runtime]System.Collections.Generic.IEnumerable`1, int32) IL_0008: box !!T IL_000d: unbox.any !!T2 IL_0012: ret } // end of method ExtensionProperties::Cast .method public hidebysig static void StaticExtension () cil managed { // Method begins at RVA 0x2060 // Header size: 1 // Code size: 2 (0x2) .maxstack 8 IL_0000: nop IL_0001: ret } // end of method ExtensionProperties::StaticExtension } // end of class ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV1