.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 59b584b39e
Merge pull request #1652 from icsharpcode/custom-task
7 years ago
..
.gitignore
…
AnonymousTypes.cs
…
AssemblyCustomAttributes.cs
…
Async.cs Fix #1604: async methods that had no 'await' but were capturing 'this' were not decompiled correctly 7 years ago
AsyncMain.cs
…
AutoProperties.cs
…
CS6_StringInterpolation.cs Fix #1497: do not insert newlines inside string interpolation expressions. 8 years ago
CS72_PrivateProtected.cs
…
CS73_StackAllocInitializers.cs
…
CheckedUnchecked.cs Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
CompoundAssignmentTest.cs Fix #1552: user-defined and decimal increments 7 years ago
ConstantsTests.cs Fix #1552: user-defined and decimal increments 7 years ago
ConstructorInitializers.cs
…
CustomAttributeConflicts.cs Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
CustomAttributeSamples.cs Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
CustomAttributes.cs
…
CustomAttributes2.cs
…
CustomShortCircuitOperators.cs
…
CustomTaskType.cs Implement detection of custom task implementations + tests. 7 years ago
DelegateConstruction.cs Implement transformation of delegate construction with ldvirtftn. 7 years ago
Discards.cs Fix build break; only escape _ if it is a type name. Add basic Discards tests. 8 years ago
DynamicTests.cs Fix #1635: DynamicInvokeConstructorInstruction Did report the wrong StackType for value types and unknown types. 7 years ago
EnumTests.cs
…
ExceptionHandling.cs Fix #1643: Handle unbox.any in TransformCatchVariable. 7 years ago
ExpressionTrees.cs Do not convert simple LINQ method calls to LINQ expressions. Closes #1501. 7 years ago
FixProxyCalls.cs Fix #1660: Generic proxy calls should use the callee's type parameter substitution, not the caller's. 7 years ago
Generics.cs Merge branch 'origin/master' into nullable-reference-types 8 years ago
HelloWorld.cs
…
InitializerTests.cs Do not convert simple LINQ method calls to LINQ expressions. Closes #1501. 7 years ago
InlineAssignmentTest.cs Fix #1571: Expression transforms not running for values of inline assignments. 7 years ago
InterfaceTests.cs
…
Issue1080.cs Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
LiftedOperators.cs Reenable LiftedOperators tests. 8 years ago
LocalFunctions.cs #1349: Fix assertions triggered by incorrect local function decompilation. 7 years ago
Lock.cs
…
Loops.cs Fix #882: Don't inline value-type temporaries for setter calls. 8 years ago
MemberTests.cs
…
MultidimensionalArray.cs
…
NamedArguments.cs
…
NullPropagation.cs Improve NullPropagation (?.) when fields of value-type are involved. 7 years ago
NullableRefTypes.cs Fix references to nested types in generic classes. 7 years ago
OptionalArguments.cs Fix #1567: Do not transform string.Concat method calls to + operators if named arguments are used. 7 years ago
OutVariables.cs Add support for "definitely assigned if true/false" to data flow analysis. 7 years ago
PInvoke.cs
…
PropertiesAndEvents.cs
…
QualifierTests.cs Add option: 'ref' extension methods 7 years ago
QueryExpressions.cs Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
Readme.txt Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
ReduceNesting.cs
…
RefLocalsAndReturns.cs Fix #1630: Do not convert while to for statement, if any iterator variables are to be declared in the loop body. This causes problems with ref-typed variables. 7 years ago
ShortCircuit.cs
…
Switch.cs Fix SwitchOnStringTransform.SimplifyCascadingIfStatements: do not remove statements unrelated to switch pattern. 7 years ago
ThrowExpressions.cs Reformat ThrowExpressions tests. 7 years ago
TupleTests.cs Merge branch 'master' of https://github.com/icsharpcode/ILSpy into ref 7 years ago
TypeAnalysisTests.cs Fix invalid code generated for impossible casts. 7 years ago
TypeMemberTests.cs Upgrade Roslyn for tests to 3.0.0-beta3. 8 years ago
UnsafeCode.cs Fix #1499, fix #1502 8 years ago
UserDefinedConversions.cs Fix #1574: When re-introducing an explicit cast for an implicit user-defined conversion; ensure we use a direct cast and don't go through the code path for builtin conversions. 7 years ago
Using.cs
…
ValueTypes.cs Fix #1655: Incorrect pointer cast when calling method on integer constant 7 years ago
VariableNaming.cs
…
VariableNamingWithoutSymbols.cs
…
WellKnownConstants.cs
…
YieldReturn.cs Fix #1563: `Unexpected return in MoveNext()` when mixed `using` and more than one `yield break` 7 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.