Skip to content

Commit bf13357

Browse files
Add property attributes in Format-MemberSignature (#39)
1 parent c92d4c9 commit bf13357

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ClassExplorer/SignatureWriter.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,14 @@ public SignatureWriter MaybePrepForGenericConstraint(Type genericArg, ref bool a
17621762

17631763
public SignatureWriter Member(PropertyInfo property)
17641764
{
1765+
if (!Simple)
1766+
{
1767+
foreach (CustomAttributeData? attribute in property.CustomAttributes)
1768+
{
1769+
Attribute(attribute).NewLine();
1770+
}
1771+
}
1772+
17651773
MethodInfo? getMethod = property.GetGetMethod(nonPublic: true);
17661774
MethodInfo? setMethod = property.GetSetMethod(nonPublic: true);
17671775
MethodInfo? modifiersMethod = null;

0 commit comments

Comments
 (0)