Skip to content

Commit 5fb6c10

Browse files
committed
remove name from context features
1 parent c80a549 commit 5fb6c10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/cognitive-services/personalizer/includes/quickstart-sdk-csharp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ static UserProfile GetRandomUser()
347347

348348
public class UserProfile
349349
{
350-
public string Name { get; set; }
350+
// Mark name as non serializable so that it is not part of the context features
351+
[NonSerialized()]
352+
public string Name;
351353
public Dictionary<string, bool> DietaryPreferences { get; set; }
352354
public string AvgOrderPrice { get; set; }
353355

0 commit comments

Comments
 (0)