Skip to content

Commit 8f50393

Browse files
Merge pull request #110 from thomasclaudiushuber/issue-105-fix
Ensure property attribute can be used on partial properties
2 parents 8a49403 + cf06dbf commit 8f50393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MvvmGen/Attributes/PropertyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace MvvmGen
1313
/// <summary>
1414
/// Specifies that a property in the ViewModel should be generated for a field. Set this attribute on a field of a class that has the <see cref="ViewModelAttribute"/> set.
1515
/// </summary>
16-
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
16+
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
1717
public class PropertyAttribute : Attribute
1818
{
1919
/// <summary>

0 commit comments

Comments
 (0)