Skip to content

Commit e703755

Browse files
committed
chore: mention UnsafeAccessors
1 parent 72e945d commit e703755

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public class Student
112112

113113
![fluent-api-usage](https://raw.githubusercontent.com/m31coding/M31.FluentAPI/main/media/fluent-api.gif)
114114

115-
You may have a look at the generated code for this example: [CreateStudent.g.cs](src/M31.FluentApi.Tests/CodeGeneration/TestClasses/StudentClass/CreateStudent.g.cs). Note that if you use private members or properties with a private set accessor, as it is the case in this example, the generated code will use reflection to set the properties.
115+
You may have a look at the generated code for this example: [CreateStudent.g.cs](src/M31.FluentApi.Tests/CodeGeneration/TestClasses/StudentClass/CreateStudent.g.cs). Note that if you use private members or properties with a private set accessor, as it is the case in this example, the generated code will use UnsafeAccessors to set the properties.
116116

117117
## Attributes
118118

src/M31.FluentApi.Storybook/01_Basics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public static void UseTheGeneratedFluentApi()
206206
namespace FluentMethodExample
207207
{
208208
/* The generated builder methods simply set the values of the fields and properties. For public fields and
209-
properties, this is straightforward. For private fields and private set accessors, reflection will be used.
209+
properties, this is straightforward. For private fields and private set accessors, UnsafeAccessors will be used.
210210
Nevertheless, in both cases, the builder methods merely set the values to the given arguments.
211211
There might be use cases where you want to have more control over the builder methods, such as setting the value
212212
in a particular way or triggering additional behavior. To this end you, can define custom methods that return

0 commit comments

Comments
 (0)