Advertisement
damesova

FormattingExample2

Mar 19th, 2023
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | Source Code | 0 0
  1. public class Person
  2. {
  3.     private string firstName;
  4.     private string lastName;
  5.  
  6.     public Person(string firstName, string lastName)
  7.     {
  8.         this.firstName = firstName;
  9.         this.lastName = lastName;
  10.     }
  11.  
  12.     public string FullName
  13.     {
  14.         get { return $"{firstName} {lastName}"; }
  15.     }
  16. }
Tags: formatting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement