diff options
Diffstat (limited to 'sdks/wasm/tests/debugger/dependency.cs')
-rw-r--r-- | sdks/wasm/tests/debugger/dependency.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sdks/wasm/tests/debugger/dependency.cs b/sdks/wasm/tests/debugger/dependency.cs new file mode 100644 index 00000000000..05925f75aa8 --- /dev/null +++ b/sdks/wasm/tests/debugger/dependency.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; + +namespace Simple +{ + public class Complex + { + public int A { get; set; } + public string B { get; set; } + object c; + + public Complex(int a, string b) + { + A = a; + B = b; + this.c = this; + } + + public int DoStuff() + { + return DoOtherStuff(); + } + + public int DoOtherStuff() + { + return DoEvenMoreStuff() - 1; + } + + public int DoEvenMoreStuff() + { + return 1 + BreakOnThisMethod(); + } + + public int BreakOnThisMethod() + { + var x = A + 10; + c = $"{x}_{B}"; + + return x; + } + } +} |