Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
nguoi
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace tinhtiendien { class Nguoi { private string hoten; public string Hoten { get { return hoten; } set { hoten = value; } } private DateTime ngaysinh; public DateTime Ngaysinh { get { return ngaysinh; } set { ngaysinh = value; } } private int sdt; public int Sdt { get { return sdt; } set { sdt = value; } } private string diachi; public string Diachi { get { return diachi; } set { diachi = value; } } public Nguoi() { this.Hoten = ""; this.Ngaysinh = new DateTime(0, 0, 0, 0, 0, 0); this.Sdt = 0; this.Diachi = ""; } public Nguoi(string hoten, DateTime ngaysinh, int sdt, string diachi) { this.Hoten = hoten; this.Ngaysinh = ngaysinh; this.Sdt = sdt; this.Diachi = diachi; } ~Nguoi(){ Console.ReadLine(); } public new string ToString() { return this.Hoten + " " + this.Ngaysinh + " " + this.sdt + " " + this.Diachi; } } }
run
|
edit
|
history
|
help
0
Determine if Two Words Are Anagrams of Each Other
Main3-2
String to Decimal CSHARP
pattern
Use ConcurrentQueue and ConcurrentDictionary with TPL (Simple example)
sdfgthyjuytgrfedscf
Viktor's example
Nuzrath 284
C# Programming Exercise 3
Serialization