Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// <Snippet2>
using System;

Expand All @@ -5,7 +5,7 @@

public class Person
{
private Int16 personAge = 0;
private UInt16 personAge = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On line 11, a cast is needed (no suggestion, because that line wasn't changed). While here, let's simplify this as well:

public Int16 Age => (Int16)personAge;

Also, the snippets build is failing because there isn't a project file in this folder. If it's easy, can you add a project file in this folder? (This looks like old samples that were imported from a different system, so that may require a lot more work than this PR should add)


public Int16 Age
{ get { return personAge; } }
Expand Down
Loading