.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.
 
 
 
 

39 lines
616 B

using System;
public class VBPropertiesTest
{
private int _fullProperty;
public int FullProperty {
get {
return _fullProperty;
}
set {
_fullProperty = value;
}
}
public int AutoProperty { get; set; }
#if ROSLYN
public int ReadOnlyAutoProperty { get; }
public VBPropertiesTest()
{
ReadOnlyAutoProperty = 32;
}
#endif
public void TestMethod()
{
FullProperty = 42;
_fullProperty = 24;
AutoProperty = 4711;
Console.WriteLine(AutoProperty);
Console.WriteLine(_fullProperty);
Console.WriteLine(FullProperty);
#if ROSLYN
Console.WriteLine(ReadOnlyAutoProperty);
#endif
}
}