.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Siegfried Pammer ffcd468d22 Fix #1572: parameters of lambdas and local functions are renamed, if there are with names from outer scopes collisions. 10 months ago
..
.gitignore
AnonymousTypes.cs
AssemblyCustomAttributes.cs
Async.cs Rewrite AssignVariableNames algorithm to use variable usages instead of the list of variables. 2 years ago
AsyncForeach.cs
AsyncMain.cs
AsyncStreams.cs
AsyncUsing.cs
AutoProperties.cs Fix #3010: Remove compiler-generated attributes for required members with custom ctors. 3 years ago
CS9_ExtensionGetEnumerator.cs Add additional tests for .NET 4.0 4 years ago
CS72_PrivateProtected.cs
CS73_StackAllocInitializers.cs Âdd a test case for stackalloc in nested context. 4 years ago
CheckedUnchecked.cs
Comparisons.cs Fix #3322: Add missing checks for equality comparison 11 months ago
CompoundAssignmentTest.cs #1572: Do not generate variable names that match C# keywords. 10 months ago
ConstantsTests.cs Fix #3367: Add extra validation to TransformDecimalCtorToConstant to prevent crashes with obfuscated assemblies. 1 year ago
ConstructorInitializers.cs Fix #3310: Filter out copy-constructor only if it's an actual record type. 1 year ago
CovariantReturns.cs
CustomAttributeConflicts.cs
CustomAttributeSamples.cs
CustomAttributes.cs Add test case for generic attributes. 3 years ago
CustomAttributes2.cs
CustomShortCircuitOperators.cs
CustomTaskType.cs
DeconstructionTests.cs Add additional tests for .NET 4.0 4 years ago
DelegateConstruction.cs Fix #1572: parameters of lambdas and local functions are renamed, if there are with names from outer scopes collisions. 10 months ago
Discards.cs
DynamicTests.cs Transform RequiresLocationAttribute to 'ref readonly' on function pointers. 2 years ago
EnumTests.cs Fix #2646: Missing values for enums with skipped or duplicate items 4 years ago
ExceptionHandling.cs Fix nullable and other warnings. 4 years ago
ExpressionTrees.cs Fix #3014: Missing type information in lambda expressions. 2 years ago
FileScopedNamespaces.cs
FixProxyCalls.cs Fix #3014: Missing type information in lambda expressions. 2 years ago
FunctionPointers.cs Transform RequiresLocationAttribute to 'ref readonly' on function pointers. 2 years ago
Generics.cs
HelloWorld.cs
IndexRangeTest.cs
InitializerTests.cs Allow explicit null termination character 11 months ago
InlineAssignmentTest.cs
InterfaceTests.cs Output attributes on lambda expressions 4 years ago
Issue1080.cs
LiftedOperators.cs
LocalFunctions.cs Rewrite AssignVariableNames algorithm to use variable usages instead of the list of variables. 2 years ago
Lock.cs
Loops.cs
MemberTests.cs
MetadataAttributes.cs Add MethodCodeType argument to MethodImplAttribute. 4 years ago
MultidimensionalArray.cs
NamedArguments.cs
NativeInts.cs Merge pull request #2873 from icsharpcode/net-7.0 3 years ago
NullPropagation.cs Fix #3181: missing type information on NullReferenceExpression used with nullable value types. 1 year ago
NullableRefTypes.cs Add test case for explicit interface implementation involving nullable types 2 years ago
Operators.cs Add support for calling `operator checked`. 3 years ago
OptionalArguments.cs Fix #3384: add special case for null-literal conversions in optional argument handling. 11 months ago
OutVariables.cs Fix #2806: Do not use implicitly typed out variables, if argument and parameter types do not match exactly. 3 years ago
PInvoke.cs Fix interaction of C# 11 nint==IntPtr with overload resolution. 3 years ago
PatternMatching.cs Add test case for empty string pattern 2 years ago
PropertiesAndEvents.cs
QualifierTests.cs
QueryExpressions.cs Remove incomplete/wrong support for null-forgiving operator. 4 years ago
Readme.txt
Records.cs Add non-embedded attributes to all tests that use older framework versions. 11 months ago
ReduceNesting.cs Adjust test name 3 years ago
RefFields.cs Add support for ScopedRefAttribute 3 years ago
RefLocalsAndReturns.cs #1572: Do not generate variable names that match C# keywords. 10 months ago
ShortCircuit.cs
StaticAbstractInterfaceMembers.cs Implement support for explicit interface implementation of operators and operator uses. 2 years ago
StringInterpolation.cs Support concatenation involving arguments of type ReadOnlySpan<char>. 2 years ago
Structs.cs Add non-embedded attributes to all tests that use older framework versions. 11 months ago
Switch.cs Fix switch-on-string transform for optimized Roslyn. 1 year ago
SwitchExpressions.cs
ThrowExpressions.cs
TupleTests.cs Fix #3014: Missing type information in lambda expressions. 2 years ago
TypeAnalysisTests.cs Fix #2166: Unnecessary uint casts/conversions for certain bitwise operations 1 year ago
TypeMemberTests.cs Fix #3319: KeyDownEvent field reference was replaced with KeyDown event reference. 1 year ago
UnsafeCode.cs AssignVariableNames: Handle fixed statement special cases 2 years ago
UserDefinedConversions.cs
Using.cs Fix #3385: Allow address uses of structs in using transform, if the reference is passed to an in parameter. 11 months ago
UsingVariables.cs Add additional tests for .NET 4.0 4 years ago
ValueTypes.cs Support ILInlining for in parameters 2 years ago
VariableNaming.cs Fix #3278: Missing variable declaration in nested for-loop after many other loops 1 year ago
VariableNamingWithoutSymbols.cs Rewrite AssignVariableNames algorithm to use variable usages instead of the list of variables. 2 years ago
WellKnownConstants.cs Add additional tests for .NET 4.0 4 years ago
YieldReturn.cs Revert "Add support for C# 11 parameter null checks" 2 years ago

Readme.txt

The files in this folder are prettiness tests for the decompiler.

The NUnit class running these tests is ../PrettyTestRunner.cs.

Each test case is a C# file.
The test runner will:
1. Compile the file into an .exe/.dll
2. Decompile the .exe/.dll
3. Compare the resulting code with the original input code.

The tests pass if the code looks exactly the same as the input code, ignoring comments, empty lines and preprocessor directives.
It also ignores disabled preprocessors sections (e.g. "#if ROSLYN") when the test runs with a compiler that does not set this symbol.
See Tester.GetPreprocessorSymbols() for the available symbols.