elena1234

Debugging

Apr 21st, 2021 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. using System.Diagnostics;
  2.  
  3. namespace Debugging
  4. {
  5.     [DebuggerDisplay("{Name}")]
  6.     public class Student
  7.     {
  8.         public Student(string name, int age)
  9.         {
  10.             this.Name = name;
  11.             this.Age = age;
  12.         }
  13.  
  14.         public string Name { get; private set; }
  15.         public int Age { get; private set; }
  16.     }
  17. }
  18.  
Add Comment
Please, Sign In to add comment