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
|
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Foo foo = new Foo { Value = 3 };
MyMethod(ref foo);
}
[DebuggerStepThrough()]
static void MyMethod(ref Foo foo)
{
foo = new Foo();
foo.Value = 47;
}
}
[DebuggerDisplay("Wert = {Value}")]
class Foo
{
[DebuggerDisplay("Wert der Eigenschaft = {Value}")]
public int Value { get; set; }
}
}
|