Skip to content

Commit 78b2988

Browse files
committed
Fixing example w/ exception and property.
1 parent 4fc7680 commit 78b2988

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/code/projects/PropertySafety/PropertySafety/PropertySafety.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ public string SensibleData
77
{
88
set
99
{
10+
sensibleData = value;
1011
if (value == "Forbidden word")
1112
{
1213
Console.WriteLine("Intrusion detected, aborting!");
1314
throw new AccessViolationException();
1415
}
15-
sensibleData = value;
1616
}
1717
get { return sensibleData; }
1818
}

0 commit comments

Comments
 (0)