@ -2,6 +2,12 @@ using System;
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
{
{
internal class AsymmetricAccessibility
{
public int PrivateSetter { get ; private set ; }
public int ProtectedSetter { get ; protected set ; }
}
internal class AutoProperties
internal class AutoProperties
{
{
#if CS110
#if CS110
@ -38,10 +44,40 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
#endif
#endif
}
}
}
}
internal class AutoPropertiesBase
{
public virtual int VirtualProperty { get ; set ; }
public virtual int VirtualGetterOnly { get ; }
}
internal class AutoPropertiesDerived : AutoPropertiesBase
{
public override int VirtualProperty { get ; set ; }
public sealed override int VirtualGetterOnly { get ; }
}
internal class AutoPropertyExplicitImpl : IAutoProperty
{
int IAutoProperty . Property { get ; set ; }
}
internal class AutoPropertyImplicitImpl : IAutoProperty
{
public int Property { get ; set ; }
}
internal interface IAutoProperty
{
int Property { get ; set ; }
}
#if !NET70
#if !NET70
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
internal sealed class RequiredMemberAttribute : Attribute
internal sealed class RequiredMemberAttribute : Attribute
{
{
}
}
#endif
#endif
internal struct StructAutoProperties
{
public int Property { get ; set ; }
public int GetterOnly { get ; }
}
}
}