Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dependency.cs « debugger « tests « wasm « sdks - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05925f75aa8fbc3ea1aed265ebd0aa8fef86eaae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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;
        }
    }
}