Could it be that this comment is supposed to be // Implementing declaration?
171 // <FieldProperty>
172 // in file1.cs
173 public partial class PropertyBag
174 {
175 // Defining declaration
176 public partial int MyProperty { get; set; }
177 }
178
179 // In file2.cs
180 public partial class PropertyBag
181 {
182 // Defining declaration
183 public partial int MyProperty { get => field; set; }
184 }
185
186 // </FieldProperty>
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
docs/docs/csharp/programming-guide/classes-and-structs/snippets/partial-classes-and-methods/Program.cs
Line 182 in 670d631
Could it be that this comment is supposed to be
// Implementing declaration?Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.