.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 8834c02eb7 Improve naming of delegate-typed variables. 3 weeks ago
..
.gitignore
AnonymousTypes.cs
AssemblyCustomAttributes.cs
Async.cs Rewrite AssignVariableNames algorithm to use variable usages instead of the list of variables. 1 year ago
AsyncForeach.cs
AsyncMain.cs
AsyncStreams.cs
AsyncUsing.cs
AutoProperties.cs Fix #3010: Remove compiler-generated attributes for required members with custom ctors. 2 years ago
CS9_ExtensionGetEnumerator.cs
CS72_PrivateProtected.cs
CS73_StackAllocInitializers.cs Use type hint in pointer arithmetic when appropriate 4 months ago
CheckedUnchecked.cs
Comparisons.cs Fix #3322: Add missing checks for equality comparison 5 months ago
CompoundAssignmentTest.cs #1572: Do not generate variable names that match C# keywords. 4 months ago
ConstantsTests.cs Fix #3367: Add extra validation to TransformDecimalCtorToConstant to prevent crashes with obfuscated assemblies. 6 months ago
ConstructorInitializers.cs Fix #3310: Filter out copy-constructor only if it's an actual record type. 9 months ago
CovariantReturns.cs
CustomAttributeConflicts.cs
CustomAttributeSamples.cs
CustomAttributes.cs
CustomAttributes2.cs
CustomShortCircuitOperators.cs
CustomTaskType.cs
DeconstructionTests.cs
DelegateConstruction.cs Improve naming of delegate-typed variables. 3 weeks ago
Discards.cs
DynamicTests.cs Transform RequiresLocationAttribute to 'ref readonly' on function pointers. 1 year ago
EnumTests.cs Addressed feedback 4 months ago
ExceptionHandling.cs Sightly improve variable naming of known types such as EventArgs and Exceptions 4 months 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. 1 year ago
Generics.cs Add transform to remove unconstrained generic reference type check. 4 months ago
GloballyQualifiedTypeInStringInterpolation.cs Parenthesize interpolations containing `global::` (#3463) 3 months ago
HelloWorld.cs
IndexRangeTest.cs
InitializerTests.cs Allow explicit null termination character 5 months ago
InlineArrayTests.cs Add support for constant slices of InlineArrays 1 month ago
InlineAssignmentTest.cs
InterfaceTests.cs
Issue1080.cs
Issue3406.cs Fix #3406: Wrong decompilation of record struct without primary constructor. 4 months ago
Issue3439.cs Fix #3439: Regressed decompilation of variables in lambda scope 4 months ago
Issue3442.cs Don't include generic constraints in generated explicit overrides 4 months ago
Issue3483.cs Add configuration option to check for overflow and underflow 2 months ago
LiftedOperators.cs
LocalFunctions.cs Fix #3439: Regressed decompilation of variables in lambda scope 4 months ago
Lock.cs
Loops.cs
MemberTests.cs
MetadataAttributes.cs Add support for using different editions of .NET in unit tests 3 weeks ago
MultidimensionalArray.cs
NamedArguments.cs
NativeInts.cs
NullPropagation.cs Fix #3181: missing type information on NullReferenceExpression used with nullable value types. 7 months ago
NullableRefTypes.cs Add test case for explicit interface implementation involving nullable types 2 years ago
Operators.cs Add support for calling `operator checked`. 2 years ago
OptionalArguments.cs Handle explicit optional parameter after default parameter (#3470) 2 months ago
OutVariables.cs
PInvoke.cs
ParamsCollections.cs Support params keyword on non-array collections 3 weeks ago
PatternMatching.cs Add test case for empty string pattern 2 years ago
PointerArithmetic.cs Add another int-guid pair test 4 months ago
PropertiesAndEvents.cs
QualifierTests.cs
QueryExpressions.cs
Readme.txt
Records.cs Add non-embedded attributes to all tests that use older framework versions. 5 months ago
ReduceNesting.cs
RefFields.cs
RefLocalsAndReturns.cs #1572: Do not generate variable names that match C# keywords. 4 months ago
ShortCircuit.cs
StaticAbstractInterfaceMembers.cs Implement support for explicit interface implementation of operators and operator uses. 2 years ago
StringInterpolation.cs Fix #3464: Missing cast in string interpolation 3 months ago
Structs.cs Add non-embedded attributes to all tests that use older framework versions. 5 months ago
Switch.cs Add support for using different editions of .NET in unit tests 3 weeks 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 9 months ago
TypeMemberTests.cs Fix #3319: KeyDownEvent field reference was replaced with KeyDown event reference. 8 months ago
UnsafeCode.cs Use type hint in pointer arithmetic when appropriate 4 months ago
UserDefinedConversions.cs
Using.cs Fix #3385: Allow address uses of structs in using transform, if the reference is passed to an in parameter. 5 months ago
UsingVariables.cs
ValueTypes.cs Support ILInlining for in parameters 1 year ago
VariableNaming.cs Fix #3278: Missing variable declaration in nested for-loop after many other loops 10 months ago
VariableNamingWithoutSymbols.cs Rewrite AssignVariableNames algorithm to use variable usages instead of the list of variables. 1 year ago
WellKnownConstants.cs Add support for using different editions of .NET in unit tests 3 weeks ago
YieldReturn.cs Revert "Add support for C# 11 parameter null checks" 1 year 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.