Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Tsg.Investment.Profile.Domain
- {
- public class Person2
- {
- private string _firstName;
- private string _lastName;
- public String FirstName
- {
- set => _firstName = value;
- }
- public String LastName
- {
- set => _lastName = value;
- }
- public String FullName
- {
- get { return _firstName + " " + _lastName; }
- }
- }
- }
- // usage:
- Person2 = new Person2
- {
- FirstName = "Panos",
- LastName = "Cosmidis"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement